aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming - 2
  • The following program prints main() { int i = 5; i = (++i...
Multiple choice

The following program prints main() { int i = 5; i = (++i) / (i ++); printf(“%d”,i); }

  1. 2

  2. 5

  3. 1

  4. 6

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • 1)main() { int i = 5; printf(“%d %d %d %d %d”,i++,i--,++i,--i,i); }
  • The output of the following program will be main() { int a = 1, b=2, c=3; printf(“%d”, a+=(a+=3,5,a)); }
  • void main() { int i=5; i+=i*=i-=i/i; printf("%d",i); }
  • Find the output of this program. main() { int i=5; printf(“%d”,i=++i ==6); }
  • Find the output of this program. main() { int i=5; printf(“%d”,i=++i ==6); }
  • What would be the output of the following? void main() { int a=10,b; b=a++ + ++a; printf("%d %d %d %d",b,a+...
  • What is the output ? main() { int i=8; printf("%d%d%d%d", i, i++, ++i, i); }
  • #include void main() { int i=1; printf("%d",++i); printf("%d",i++); } choose output of the above program
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy