NEW
Font size
WorksheetsOperators in C
Total questions: 10
Worksheet time: 2mins
int x;
int y;
int z;
x=3;
y=4;
z = ++x * y++;
printf("%d",z);
12
16
20
0
Which of the following is not a Bitwise operator?
&&
&
|
~
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
none
23
2.8
24
Among the given operators which operator has the lowest precedence
++
+
%
||
What is the output of the following code
int main()
{
int y=2;
int z=5;
y/=z+2;
printf("y= %d\n",y);
}
0
2
1
7
What will be the output of the following program
#include<"stdio.h>
int main()
{
int x, y = 5, z = 5;
x = y == z;
printf(\"%d\", x);
getchar();
return 0;
}
1
0
5
none
Find the output of the given C program.
#include<stdio.h>
int main()
{
printf("%d ", -9 && 9);
printf("%d", -9 || 9);
return 0;
}
9999
99
00
11
What will be the output of following program ?
#include <stdio.h>
void main()
{
printf("value is = %d",(10++));
}
11
10
0
ERROR
//What will be the output of the given program in turbo C
#include <stdio.h>
void main()
{
int x=10;
x+=(x++)+(++x)+x;
//printf("%d\n",y);
printf("%d",x);
}
44
45
46
11
What is the output of the following program
#include <stdio.h>
void main()
{
int a=10,b=2,x=0;
x=a+b*a+10/2*a;
printf("value is =%d",x);
}
120
90
89
80
