Multiple Choice
What is the output of the following code?
Int *p1, *p2;
P1 = new int;
P2 = new int;
*p1=11;
*p2=0;
P2=p1;
Cout << *p1 <<" " << *p2 << endl;
A) 11 0
B) 0 11
C) 11 11
D) 0 0
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: Which of the following is not true?<br>A)
Q3: Which of the following statements correctly prints
Q4: Which of the following assigns to p1
Q5: Declare a pointer variable named ptr to
Q6: Dynamically created variables have no name.
Q8: Even though pointers point to addresses which
Q9: Given that p1 is a pointer variable
Q10: Assuming that the pointer variable p1 is
Q11: In which case would you consider using
Q12: If p1 is an integer pointer that