What does the following C code print? int x = 5; i...
Guiding State PSC aspirants since 2016 50,000+ students · 1,000+ final selections Exam Calendar Results Call 9116926003
pscnotes
Pick your state
GPSC Prelims previous year questions

What does the following C code print? int x = 5; int y = x++ + ++x; printf("%d", y);

Asked in GPSC Graduate Engineer Trainee, Class-2, Gujarat Maritime Board (GMB) 2026

  1. Compilation error
  2. 12
  3. Undefined behavior
  4. 10

Answer under review: our editors are checking this question. Try the other GPSC Prelims previous year questions questions meanwhile.

More GPSC Prelims previous year questions questions

All 27,862 GPSC Prelims previous year questions questions →