The following code ‘for(;;)’ represents an infinite loop. It can be terminated by.
What is the output of the following code snippet?
#include"stdio.h"
int main()
{
int a=0,b=2;
if(printf("%d",printf("999")),a)
{
printf("True");
}
else
{
printf("False");
}
return 0;
}
1 Crore+ students have signed up on EduRev. Have you? Download the App |
What is the output of following program?
#include<stdio.h>
int main(){
int a=10;
if(printf("%d",a>=10)-10)
for(;;)
break;
else;
return 0;
}
What is the output of the program?
#include "stdio.h"
int main(){
int i = 0;
while (++i)
{
printf("codequiz");
}
return 0;
}
What is the output of the following code snippet?
#include"stdio.h"
int main(){
int x= 5;
if(x < 1);
printf("Hello");
printf("Hi");
return 0;
}
What is the output of the program?
int main()
{
int i = 4;
switch (i)
{
default:
;
case 3:
i += 5;
if ( i == 8)
{
i++;
if (i == 9) break;
i *= 2;
}
i -= 4;
break;
case 8:
i += 5;
break;
}
printf("i = %d\n", i);
return 0;
}
Which for loop has range of similar indexes of ‘i’ used in for (i = 0;i < n; i++)?
What is the output of the following code snippet?
#include"stdio.h"
int main()
{
if(true)
printf("TRUE");
else
printf("FALSE");
return 0;
}
What is the output of the program?
#include <stdio.h>
int main()
{
char a1[]="codequiz";
char a2[]="codequiz";
if(a1==a2)
printf("Equal");
else
printf("Unequal");
return 0;
}
What is the output of this C code?
#include"stdio.h"
void main(){
double k = 0;
for (k = 0.0; k < 3.0; k++)
printf("OMM");
}
73 videos|7 docs|23 tests
|