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(%c, abcdefgh[4]);}

  1. Error

  2. d

  3. e

  4. abcdefgh

  5. None of these

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

It returns the value of 4th position.

Keep practicing — related questions

  • 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) ; }
  • Find the output of the following C program: main(){char ch='A';printf(%d%d,sizeof(ch),sizeof(A));}
  • Find the output of the following C program: main(){int x=10,y=10,z=5,i;i=x}
  • 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=2;printf(%d %d,++i,++i);}
  • Find the output of the following C program: main(){char str[7]=Strings;printf(%s,str);}
  • Find the output of the following C program: main(){int i=0;while(i++<10)printf(%d,i);}
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