aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming - 2
  • What will be the value of i? int i = 1; i = i +2*i ++; pr...
Multiple choice

What will be the value of i? int i = 1; i = i +2*i ++; printf(“%d”,i);

  1. 4

  2. 1

  3. 3

  4. 2

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • What gets printed? int i = 3; if (!i) i++; i++; if (i==3) i+=2; i+=2; printf("%d\n", i);
  • What is the output?int i = 3;if (!i) i++; i++;if (i==3) i+=2; i+=2;printf("%d\n", i);
  • What will be the output of the following: void main() { int i; for(i=1;i<=4;i++) { printf("%d",i); continue...
  • i=3; Printf("%d%d%d",i++,++i,i); What will be output of the code snippet?
  • main() { int i=3; printf(Value of i=%d,*(&i)); } Give the output of above program.
  • Guess the Output? void main() { int i=5; i+=i*=i-=i/i; printf("%dn",i); }
  • ++ void main() { int i = 4, x; x = ++i + ++i + ++i; printf("%d", x); } What will be the output of the above...
  • The following program prints main() { int i = 5; i = (++i) / (i ++); printf(“%d”,i); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy