Question: What is wrong with the following C + + code? int * p; / / Line 1 int * q; / / Line 2 p
What is wrong with the following C code?
int p; Line
int q; Line
p new int; Line
p ; Line
for int i ; i ; iLine
pi pi i; Line
q p; Line
delete p; Line
for int j ; j ; jLine
cout qj; Line
cout endl; Line In C
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
