43. | What will be the output of the following code snippet when it is executed? int x = 1;
float y = 1.1f;
short z = 1;
Console.WriteLine((float) x + y * z - (x += (short) y));
|
|||||||
|
44. | What will be output if you will compile and execute the following c code? #include
int main(){
int a=-20;
int b=-3;
printf("%d",a%b);
return 0;
}
|
|||||||
|
45. | What will be output if you will compile and execute the following c code? #include
int main(){
int a=5;
int b=10;
{
int a=2;
a++;
b++;
}
printf("%d %d",a,b);
return 0;
}
|
|||||||
|
46. | What will be printed as the result of the operation below: main()
{
int x=10, y=15;
x = x++;
y = ++y;
printf("%d %d",x,y);
}
|
|||||||
|
47. | What will be printed as the result of the operation below: main()
{
int a=0;
if(a==0)
printf("sikanth");
printf("srikanth");
}
|
|||||||
|
48. | What will be printed as the result of the operation below: main()
{
int x=5;
printf("%d,%d,%dn",x,x< <2,x>>2);
}
|
|||||||
|
« previous
1
2
3
4
5
6
7
8
9
next »