What will be the output for the following C progra...
Guiding State PSC aspirants since 2016 50,000+ students · 1,000+ final selections Exam Calendar Results Call 9116926003
pscnotes
Pick your state
APPSC Prelims previous year questions

What will be the output for the following C program? #include<stdio.h> void func() { int x=0; x++; printf("%d", x); } int main() { func(); func(); func(); func(); } Choose the correct option.

Asked in APPSC (Arunachal) Question Booklet (Set-A) of Paper I and Paper II 2026

  1. 1234
  2. 1111
  3. 2345
  4. 0123
Show answer

Answer: B. 1111

More APPSC Prelims previous year questions questions

All 7,479 APPSC Prelims previous year questions questions →