19. | What will be output if you will compile and execute the following c code? #include
void call(int,int,int);
int main(){
int a=10;
call(a,a++,++a);
return 0;
}
void call(int x,int y,int z){
printf("%d %d %d",x,y,z);
}
|
|||||||
|
20. | What will be output if you will compile and execute the following c code? #include
int main(){
register int i,x;
scanf("%d",&i);
x=++i + ++i + ++i;
printf("%d",x);
return 0;
}
|
|||||||
|
21. | What will be output if you will compile and execute the following c code? #include
int main(){
int i=3;
if(3==i)
printf("%d",i<<2<<1);
else
printf("Not equal");
}
|
|||||||
|
22. | What will be the output of the following arithmetic expression ? 5+3*2%10-8*6
|
|||||||
|
23. | What will be the output of the following statements ? int a = 5, b = 2, c = 10, i = a>b
void main()
{
printf("hello");
main();
}
|
|||||||
|
24. | What will be the output of the following statements? int a=5,b=6,c=9,d; d=(ac?1:2):(c>b?6:8));
printf("%d",d);
|
|||||||
|
« previous
1
2
3
4
5
6
7
8
9
next »