Question

What is the output of the following C code? struct Point { int x, y; }; struct Point p1 = {3,4}; struct Point *ptr = &p1; ptr->x += ptr->y; ptr->y = ptr->x - ptr->y; printf("%d %d", p1.x, p1.y);

A 3 4
B 4 3
C 3 7
D 7 3
E 7 4
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)