aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice technology programming languages

What will be the output of the following program : void main() { int i=5; printf("%d %d %d %d %d",++i,i++,i++,i++,++i); }

  1. Compile-Time Error

  2. 10 9 8 7 6

  3. 9 8 7 6 6

  4. 10 8 7 6 6

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • What will be the output of the following program : void main() { int a=5,b=6; Printf("%d %d %d",a,b,--a*++b...
  • What will be the output of the following program : void main() { int a=1,b=2,c=3,d=4,e; e=(a,a)+(b,c)+(c,d)...
  • What will be the output of the following program : void main() { int val=2; val = - --val- val--- --val; pr...
  • What will be the output of the following program : void main() { int a=1,b=2,c=3; c=(--a, b++)-c; printf("%...
  • What will be the output of the following program : void main() { int a=5; printf("%d"); }
  • What will be the output of the following program : void main() { int a=5,b=6,c=7; printf("%d %d %d"); }
  • What will be the output of the following program : void main() { int a=5; int b=6;; int c=a+b; printf("%d",...
  • What will be the output of the following program : void main() { int i=5,j=5; i=i++*i++*i++*i++; printf("i=...

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy