aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming, Data Structure & Algorithm - 1
  • What is the output of the following code fragment? int i ...
Multiple choice

What is the output of the following code fragment? int i = 0, j = 3; while(i++<5|| j--) printf(“Hi”);

  1. HiHiHiHiHiHiHiHi

  2. Hi

  3. HiHiHi

  4. HiHiHiHiHi

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

null

Keep practicing — related questions

  • What is the output of the following code fragment? int i = 10; if(i = printf(“%d”, i)) { printf(“%d ”, i); }
  • What would be the output of the following C code? int i=1, j=1; int n = 1; if(n>0){i++;j--;}printf(i=%d, j=...
  • What would be the output of the following statement in 'C'? int i=0; do { i=i+3; printf(n i=%d,i); }while(i...
  • What is the output of the following code? #include<stdio.h>void main(){ int s=0; while(s++<10) { if(s<4 && ...
  • What is the output?int i = 3;if (!i) i++; i++;if (i==3) i+=2; i+=2;printf("%d\n", i);
  • What is the output of the following code? #include<stdio.h> void main ( ) { int s=0; while (s++<10) { if(s<...
  • #include <stdio.h>void main() { int I=3,*j,**k; j=&I; k=&j; printf("%d%d%d",*j,**k,*(*k)); } What is the ou...
  • i=3; Printf("%d%d%d",i++,++i,i); What will be output of the code snippet?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy