aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Programming Fundamentals
  • What is the output of the following code? #includevoid ma...
Multiple choice technology

What is the output of the following code? #include<stdio.h>void main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("\n%d\t",s); }}

  1. 1 2 3 4 5 6 7 8 9

  2. 1 2 3 10

  3. 4 5 6 7 8 9 10

  4. 4 5 6 7 8 9

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • What is the output of the following code? #include void main() { int a=0,b=0; a = (b = 75) + 9; printf("\n%...
  • What is the output of the following C code? #include<stdio.h> int main() { short int i=0; for(i;++i;i>=99) ...
  • what will be the output?? int main(int c) c=1; while(1); c++; printf("%d",++c); return 0; }
  • What will be the output of the following: void main() { int i; for(i=1;i<=4;i++) { printf("%d",i); continue...
  • What is the output of the following code fragment? int i = 0, j = 3; while(i++<5|| j--) printf(“Hi”);
  • 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 will be the output of the following code? #include<stdio.h> int main() { int num,a=5; num=-a--; printf...
  • int n = 0; for ( ; ; ) { if (n++ == 5) break; continue; } printf("x=%d\n", x); What will be printed when th...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy