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 i; for(i=1;i<5;i++) printf(" %d ",i); }

  1. 1 2 3 4 5

  2. 1 2 3 4

  3. 1 2 3 4 5 6

  4. 0 1 2 3 4 5

  5. None of the above

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

Due to this relational operator '<' for loop work till i=4.

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 following C program: Main(){int i;For(i=1;i <=10;i ++){Printf(%d ”,i);i=i+1;}}
  • Find the output of the above program or error, if any. #include<stdio.h> #include<conio.h> int main() { int...
  • Find the output of this program. main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
  • Find the output of this program. main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
  • What would be the output of the following program? #include<iostream> #include<conio.h> int main() { int n=...
  • Find the output of this program. main() { int i=5; printf(“%d”,i=++i ==6); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy