C Operators Questions and Answers
Practice ModeShowing 10 of 122 questions
Q11
Find the output
void main ( )
{
unsigned int x=~5;
print 9"%u", x);
}
Answer: Option D
Q12
Find the outpu
void main ( )
int x=10;
printf("%d",
clculate (x++, ++x, x++);
}
calculate (int x, int y, int z)
{
return (x+y+z);
}
Answer: Option C
Q13
Find the output
void main ( )
{
int x, y=6;
x=y>x ||++y;
printf("%d %d', x, y);
}
Answer: Option C
Q14
which operator is used to complement a number ?
Answer: Option B
Q15
Find the outpu
void main( )
{
int x=+17>>2;
printf(%d', x);
}
Answer: Option C
Q16
If both are operands of /are integers then the fractional part of the quotient is
Answer: Option B
Q17
Coercion refers as :
Answer: Option C
Q18
how to check numeric key is on/off it char far *p=0x417
Answer: Option B
Q19
When a cast operator (short signed int) applied to signed int but the range of signed int does not fit in range of short signed int then the result is:
Answer: Option B
Q20
what will be the value of 'x' after execution of the following program?
void main ( )
{
int x=!0*20;
}
Answer: Option B