C Operators Questions and Answers

Practice Mode
Showing 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"); }
  • A A Nothing
  • B Nothing
  • C L Nothing
  • D Z 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); }
  • A 8 4
  • B 8 8
  • C 2 4
  • D 8 2
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test