Question: Question 1 3 ( 2 points ) int * p t r 1 = new int ( 5 ) ; * p t r 1
Question points
int new int;
;
delete ;
;
What will be the behavior of the above C code?
A The code will compile without any error
B The code will not compile due to a syntax error
C The code will compile but result in a run time error while assigning to ptr
D The code will not compile and there will be memory leak
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
