aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C programming
  • Find the output of the following expression. #include #in...
Multiple choice

Find the output of the following expression. #include<stdio.h> #include<conio.h> void main() {
int x, y =3;
x= ++y + 7;
printf(" %d " , x) }

  1. 10

  2. 11

  3. 8

  4. 12

  5. None of the above

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

x = (y+1) + 7 = 4+7 = 11

Keep practicing — related questions

  • Find the output of the following expression. #include<stdio.h> #iinclude<conio.h> void main() { int x=5 , y...
  • Find the output of the above program or error, if any. #include<stdio.h> #include<conio.h> int main() { int...
  • Find the output of the above program or error, if any. #include<stdio.h> #include<conio.h> int main() { int...
  • Which of the following options shows the output or error of the above program? #include<stdio.h> #include<c...
  • What would be the output of the following? main() { int y,x=5; y=++x - ++x; printf("%d%d",x,y); }
  • 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 the above program or error, if any. #include<stdio.h> #include<conio.h> int num(int); in...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy