aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programs (GATE)
  • Find the output of the following C program: main(){int x=...
Multiple choice

Find the output of the following C program:

main(){int x=10,y=10,z=5,i;i=x}

  1. 1

  2. 0

  3. Error

  4. 5

  5. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

10<10 returns 0, <5 returns 1.

Keep practicing — related questions

  • Find the output of the following C program: main(){int i=0;while(++i<=10) printf(%d, i);}
  • Find the output of the following C program: Main(){int i;For(i=1;i <=10;i ++){Printf(%d ”,i);i=i+1;}}
  • Find the output of the following C program: main(){printf(%c, abcdefgh[4]);}
  • 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); }
  • Find the output of this program. main() { int a[10]; printf("%d",*a+1-*a+3) ; }
  • Find the output of this program. main() { int a[10]; printf("%d",*a+1-*a+3) ; }
  • What would be the output of the following? void main() { int z,x=5,y=-10,a=4,b=2; z=x++ - --y *b/a; printf(...
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