Multiple Choice
What is the output of the following code fragment?
Int v1=2, v2=-1, *p1, *p2;
P1 = & v1;
P2= & v2;
P2=p1;
Cout << *p2 << endl;
A) 2
B) -1
C) -2
D) 1
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q29: If p1 and p2 are both pointers
Q30: In the statement cout << *p1;, the
Q31: Given that p1 is a pointer, p1++<br>A)
Q32: Given that p1 is an integer pointer
Q33: The & operator is called the _
Q34: What is wrong with the following code
Q36: int *p1; declares a static variable.
Q37: Dynamic variables are created from the _.
Q38: If two pointer variables point to the
Q39: Which of the following correctly declares a