Question

In C,  int x=10;  printf("%d %d",x++,++x);  What is the most accurate statement?

A It always prints 10 12.
B It always prints 11 11.
C It has undefined behavior because x is modified more than once without required sequencing.
D It prints 12 12 because prefix increment is evaluated first.
E It fails to compile because increments cannot appear in printf arguments.
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)