C Operators Questions and Answers
Practice ModeShowing 10 of 122 questions
Q121
Find the output.
void main ( )
{
char a= 'A';
if((a=='z')|| ((a='L')
&& (sizeof(a='\0'))))a=a;
printf("%c",a);
printf("Nothing");
}
Answer: Option C
Q122
Find the output
int x=2, y=4;
void main ( )
{
int *p;
p=&x;
*p++=x<<2;
*p=x;
printf("%d %d", x, y);
}
Answer: Option B