πŸ“Š C++
Q. What will happen in this code?
Code:
int x = 10, y = 20;
int *p = &x, *q = &y;
p = q;
  • (A) y is assigned to x
  • (B) p now points to y
  • (C) x is assigned to y
  • (D) q now points to x
πŸ’¬ Discuss
βœ… Correct Answer: (B) p now points to y

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
210
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate