C Language - Control Statements
You Are Here :: Home > C Language > Control Statements - General Questions
37. | #include |
|||||||
|
38. | What will be output when you will execute following c code? #include
void main(){
int m=5,n=10,q=20;
if(q/n*m)
printf("shalini");
else
printf(" shalu");
printf(" deepu");
}
Choose all that apply:
|
|||||||
|
39. | What will be output when you will execute following c code? #include
void main(){
if(!printf("shalu"))
if(printf(" deepu"));
}
Choose all that apply:
|
|||||||
|
40. | What will be output when you will execute following c code? #include
void main(){
int a=5,b=10;
if(++a||++b)
printf("%d %d",a,b);
else
printf("shalini");
}
Choose all that apply:
|
|||||||
|
41. | #include |
|||||||
|
42. | What will be the output of the following program ? #include
void main()
{
int a = 2;
switch(a)
{
case 1:
printf("goodbye"); break;
case 2:
continue;
case 3:
printf("bye");
}
}
|
|||||||
|
« previous
1
2
3
4
5
6
7