Pages
About Me
Entertainment
Technologies
Practice Programs
VB Art Gallery
Contact Me
Test-5
What will be the output of the program?
main(){
if(1,0) printf("RISE");
}
RISE
No Output
Compile Error
Runtime Error
What will be the output of the program?
int main(){
int a=9,b=7,c=5;
printf("%d %d %d");
}
9 7 5
0 0 0
Garbage Value
Compile Error
What will be the output of the program?
int main(){
float a;
(int)a= 88;
printf("%d",a);
}
88
88.00
0
Compile Error
What will be the output of the program?
int main(){
int a;
a=sizeof(!3.14);
printf("%d",a);
}
0
1
4
8
What will be the output of the program?
int main(){
int x=10,y;
y=(x++, printf("%d ",x),++x,printf("%d ",x),x++);
printf("%d ",y);
printf("%d",x);
}
10 11 12 13
10 11 11 12
11 12 12 13
Error
What will be the output of the program?
int main(){
int a=2,b=2,c=10;
c=c!=a==b;
printf("%d",c);
}
10
0
1
Error
What will be the output of the program?
int main(){
int i=2;
switch(i){
case 1:printf("RISE");
break;
case 2:continue;
printf("Code");
case 3:printf("Test");
break;
}
}
RISE
Code
Test
Compile Error
What will be the output of the program?
int main(){
int i=5;
printf("%d" "%d" "%d",i,i<<=2,i>>=2);
}
000
555
444
Compile Error
What will be the output of the program?
int main(){
int i=3;
int l=i/-2;
int k=i%-2;
printf("%d %d",l,k);
}
1 -1
-1 1
1 1
-1 -1
What will be the output of the program?
int main(){
int x=1,y=0,z=3;
x>y?printf("%d",z):return z;
}
0
1
3
Compile Error
Submit Test
Newer Post
Older Post
Home