### Science Quiz

Random Science or Computer Quiz

# C Programming Language: Operators Quiz Stats

### Popular Quizzes Today

Also try: Animal Geography
Challenge
Share
Tweet
Embed
Score 0/40 Timer 20:00
0 Plays Today
int x=50, y=14;
printf (''%d'', 2*x+y*3);
142
59.6%
 342 2.2% 184 2.2% 384 3.9%
int a[ ]={10,20,30,40,50,60,70,80,90};
printf (''%d'', a[5]);
60
57.9%
 50 9% 40 2.2% 70 1.1%
int x=5;
printf(''%d'', x<5);
0
57.9%
 1 1.1% true 6.2% false 3.4%
int x=46, y=10; x/=y;
printf(''%d'', x);
4
57.9%
 460 2.2% 46 5.6% 6 1.7%
int x=2, y=3, z=4;
printf(''%d'', x>y || y>=z);
0
57.3%
 1 3.9% 2 3.9% 4 2.2%
int x=2, y=3, z=4;
printf(''%d'', y>x && y>=z);
0
56.7%
 1 7.9% 2 2.2% 4 5.1%
int x=5;
printf(''%d'', x>5);
0
56.2%
 1 6.2% true 2.8% false 3.4%
int x=46, y=10; x*=y;
printf(''%d'', x);
460
55.6%
 46 5.6% 4 4.5% 6 2.2%
struct s { int a,b; } t;
t.a=6; t.b=t.a+1;
printf (''%d'', t.a+t.b);
13
55.6%
 6 2.8% 7 7.3% 12 2.8%
int x=5;
printf(''%d'', x==5);
1
54.5%
 0 4.5% false 0.6% true 7.9%
int x=5;
printf(''%d'', x<=5);
1
54.5%
 0 3.9% true 4.5% false 3.9%
int x=2, y=3, z=4;
printf(''%d'', y>x && z>=y);
1
54.5%
 0 6.2% 2 3.4% 4 2.8%
int x=5;
printf(''%d'', x>=5);
1
54.5%
 0 5.6% true 4.5% false 2.8%
int x=5;
printf(''%d'', x!=5);
0
53.9%
 1 6.2% false 8.4% true 0.6%
int x=2, y=3, z=4;
printf(''%d'', x>y || z>=y);
1
53.9%
 0 9% 2 1.1% 4 4.5%
int x=5;
printf(''%d'', ! (x==7));
1
52.2%
 0 10.7% 5 4.5% 7 2.2%
int x=9; int p=x; p-=2;
printf (''%d,%d'', x, p);
9,7
52.2%
 7,7 6.7% 7,9 3.4% 9,2 3.9%
int x=46, y=10; x%=y;
printf(''%d'', x);
6
48.9%
 460 5.6% 46 3.9% 4 10.7%
int x=50, y=14;
printf (''%d'', 1+x/y+3);
7
46.6%
 3 9% 7.57143 5.6% 8 7.3%
int x=5;
printf(''%d'', ! (x!=7));
0
46.6%
 1 15.2% 5 7.3% 7 1.1%
int x=5; int y=++x;
printf (''%d,%d'', x, y);
6,6
46.1%
 5,6 13.5% 6,5 6.7% 5,5 2.8%
printf(''%d'', 1 ? 2 : 3); 2
45.5%
 1 5.1% 3 16.3% 6 1.1%
struct s { int a,b; } t, *p;
t.a=5; t.b=t.a-1; p=&t;
printf (''%d'', p->a*p->b);
20
44.4%
 5 4.5% 4 7.9% 9 5.6%
int x=50, y=14;
printf (''%d'', x%y);
8
42.7%
 6 7.3% 3 10.1% 4 6.2%
int x=5; int y=--x;
printf (''%d,%d'', x, y);
4,4
42.7%
 5,5 4.5% 5,4 9.6% 4,5 10.1%
double x=50, y=14;
printf (''%lf'', 1+x/y+3);
7.571429
41.6%
 3 5.1% 7 16.3% 8 5.6%
printf(''%d'', 0 ? 2 : 3); 3
41%
 0 7.3% 2 15.2% 5 2.8%
int x=5;
printf(''%d'', x=7);
7
40.4%
 1 2.8% 0 16.3% 5 7.3%
int a[ ]={10,20,30,40,50,60,70,80,90};
printf (''%d'', *(a+3));
40
40.4%
 30 10.1% 93 6.7% 13 7.3%
int y=28;
printf(''%d'', y >> 2);
7
39.3%
 14 5.1% 56 11.2% 112 9.6%
int x=22;
printf(''%d'', x << 2);
88
38.8%
 44 11.2% 11 11.2% 5 7.9%
int x=5; int y=x++;
printf (''%d,%d'', x, y);
6,5
38.2%
 6,6 9% 5,6 16.9% 5,5 4.5%
int x=22, y=28;
printf(''%d'', x ^ y);
10
37.1%
 20 9.6% 30 9% 25 11.8%
int x=9; int *p=&x; *p+=2;
printf (''%d,%d'', x, *p);
11,11
37.1%
 9,11 21.3% 18,9 3.4% 9,18 5.1%
int x=5; int y=x--;
printf (''%d,%d'', x, y);
4,5
35.4%
 5,4 20.2% 4,4 7.9% 5,5 3.9%
int x=50, y=14;
printf (''%lf'', (double)(1+x/y+3));
7.000000
35.4%
 3 10.7% 7.57143 21.3% 8 2.2%
int x=22, y=28;
printf(''%d'', x & ~y);
2
35.4%
 8 12.9% 10 8.4% 20 9.6%
int x=22, y=28;
printf(''%d'', x & y);
20
34.8%
 10 9% 30 12.9% 25 11.2%
int x=22, y=28;
printf(''%d'', x | y);
30
33.7%
 20 15.7% 10 7.3% 25 7.9%
int x=22, y=28;
printf(''%d'', ~x & y);
8
30.3%
 2 9.6% 10 12.4% 20 12.9%

### You're not logged in!

Compare scores with friends on all Sporcle quizzes.
OR

### Extras

Created Jun 22, 2017
Tags:

### Score Distribution

#### Your Account Isn't Verified!

In order to create a playlist on Sporcle, you need to verify the email address you used during registration. Go to your Sporcle Settings to finish the process.

## Report this User

Report this user for behavior that violates our Community Guidelines.

Details: