C Operators Questions and Answers
Practice ModeShowing 10 of 122 questions
Q21
Find the outpu
void main ( )
{
int i=5;
if (i++ -1)
{
printf("%d", i);
printf("%Hello");
}
}
Answer: Option C
Q22
Find the output
void main ( )
{
int x=5;
printf("%d%d", x++,x++,x++);
}
Answer: Option B
Q23
The operators[] . and -> are known as
Answer: Option A
Q24
Find the output
void main ( )
{
int x=2;
printf("%d',++x++);
printf("%d', x++);
}
Answer: Option D
Q25
Find the output
void call (int);
void main ( )
{
call (3);
}
void call (int a)
{
if (a<6) call (++a);
printf ("%d", a);
}
Answer: Option C
Q26
The order of evaluation of operators having same precedence is decided by
Answer: Option A
Q27
Find the output
void main ( )
{
int x=1;
printf("%d==1 is "'%s",
k, k==1 ? 'TRUE": "FALSE");
}
Answer: Option B
Q28
Find the output
void main ( )
{
printf("%*d", 10, 15);
}
Answer: Option C
Q29
Find the output
void main ( )
int i=5;
i= i++ - --i + ++i;
printf("%d", i);
}
Answer: Option D
Q30
Find the output
void main ( )
{
int a=7;
a+=a+=a-=6;
printf("%d",a);
}
Answer: Option B