C Operators Questions and Answers
Practice ModeShowing 10 of 122 questions
Q61
Find the output
void main ( )
{
int a=2;
printf("%d%d%d', a++, ++a, a);
}
Answer: Option C
Q62
Find the output.
void main ( )
{
int a=1, b;
b=+-+a+-a;
printf("%d', b);
}
Answer: Option C
Q63
The correct order of evaluation for the expression a||!b && c is
Answer: Option D
Q64
Find the out
void main ( )
{
int a, b=0, c=10;
if (c=a==b)
printf("true");
else
printf("false");
}
Answer: Option B
Q65
Find the output
void main ( )
{
int a=5;
a=a-~a +1;
printf ("%d", a);
}
Answer: Option D
Q66
Find the output
void main ( )
int x=11, y=5, z=2;
x%=y*=;
printf("%d",x);
}
Answer: Option B
Q67
Find the output
void main ( )
int a=5; b;
b=(a-=5) && (a+=5);
printf("%d", a);
}
Answer: Option B
Q68
Find the output
void main ( )
{
int i=3, j=5;
i++;
if(i==--j)
break;
else
printf("continue");
printf("%d",j);
}
Answer: Option C
Q69
Find the output
void main ( )
{
int a=2, b;
b=a+*++a*a++;
printf("%d",b);
}
Answer: Option A
Q70
What is the value of x ifa=b=c=1
x=--a ||++b*(3-1)/2&&b*l(--c/3)
Answer: Option A