aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming Languages and Software Engineering
  • main() { signed int bit=512, i=5; for(;i;i--) { printf("%...
Multiple choice technology programming languages

main() { signed int bit=512, i=5; for(;i;i--) { printf("%dn", bit = (bit >> (i - (i -1)))); } }

  1. Compile error

  2. 256256256256256

  3. 55555

  4. runtime error

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • void main() { signed x; unsigned y; x= 10 + - 10u + 10u + -10; y=x; if(x==y) printf("%d %d", x, y); else if...
  • void main() { int _; _=100; printf("%d",_); }
  • Guess the Output? void main() { int i=5; i+=i*=i-=i/i; printf("%dn",i); }
  • main(){ int x=5; printf("%d %d %d\n", x,x<<2,x=x>>2); }
  • #include main(){ extern int i; i=23; printf("%d",i); }
  • main(){ int a,b; a=0; b=(a=1)?2:3; printf("%d %d",a,b); }
  • void main() { int i = 10; long *p=&i; p++; printf("%d",abs(&i-p)); }
  • 2) void main() { unsigned char a; a = 0XFF + 1; printf(“%d”,a); }
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

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