C Operators Questions and Answers
Practice ModeShowing 10 of 122 questions
Q71
Find the output
void main ( )
{
int i=5;
if(i=i++ - i)
{
printf("%d", i);
printf("Hello");
}
else
{
printf ("%d", i);
printf('Hi");
}
}
Answer: Option A
Q72
Find theoutput
void main ( )
{
int x=2, y=3, z;
z=x++||y++&&x++;
printf("%d %d %d', x,y,z);
}
Answer: Option A
Q73
Find the output
void main ( )
{
int a=3, b=5, c;
c=a, b;
printf("%d', c, ++c, ++c);
}
Answer: Option A
Q74
Find the output
void main ( )
{
int i=5;
i=i++ * i++;
printf("%d', i);
}
Answer: Option B
Q75
Find the output
void main ( )
{
int x=1, y=2, z;
z=x++&&y++|| ++y;
printf ("%d %d", x, y, z);
}
Answer: Option B
Q76
Find the output
void main ( )
{
int a;
a=sum (2,3);
printf('%d", a);
}
int sum(int a, int b)
{
a>=1&&b>=1?
return (a+b) : return (a-b);
}
Answer: Option C
Q77
Find the output
void main ( )
{
int x=1, y=3, z=0;
if(x!=y>=z)
printf ("Right");
else
printf("wrong");
}
Answer: Option B
Q78
Find the output
void main ( )
{
int i=1;
i=(5>2)?printf('Rama")
:printf ("Shyama");
printf("%d",i);
}
Answer: Option B
Q79
Find theoutput
void main ( )
{
int a=5, b=-5, c=1, d;
d=(a>b)?a;b)* (c=0?c:-c);
}
Answer: Option B
Q80
Find the output
void main ( )
{
int i=2, j=0;
j=++ % ++i;
printf ("5d", j);
}
Answer: Option A