Examlex

Solved

What Is Wrong with the Following Code Fragment

question 34

Multiple Choice

What is wrong with the following code fragment?
Int *p1, *p2;
P1 = new int;
P2 = new int;
*p1=11;
*p2=0;
P2=p1;
Cout << *p1 <<" " << *p2 << endl;
Delete p1;
Delete p2;


Definitions:

Related Questions