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

Find the output of the following C program:

main(){printf(hello);main();}

  1. Infinite loop

  2. 32767 times

  3. 65535 times

  4. Error

  5. Till the stack doesn't overflow

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

Stack keeps on executing until it overflows.

Keep practicing — related questions

  • What will be the output of the given program? int main() { printf(Hello World\\n); main(); return 0; }
  • 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 <=10;i ++){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 out the output of the given program or error if any. int main(){ register int n; int i; printf(Enter t...
  • Find the output of the following C program: main(){char str[7]=Strings;printf(%s,str);}
  • Find the output of this program. 1. void main(){ float j; j=1000*1000; printf("%f",j); }
  • Find the output of this program.1. void main(){ float j; j=1000*1000; printf("%f",j); }
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