Question

What is the output of the following C code? int a[] = {1, 2, 3, 4, 5}; int *p = &a[4]; int *q = &a[1]; printf("%d %d", (int)(p -
q), *(q + 2));

A 3 4
B 12 4
C 3 3
D 4 4
E 12 3
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)