What will happen in the following C++ code snippet?
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;A. b is assigned to a
B. p now points to b
C. a is assigned to b
D. q now points to a
Answer: Option B

Join The Discussion