MCQ Practice Single Best Answer Topic: Operators and Enums in C Language

Q Find the output of the following program

#include<stdio.h>
void main()
{
   int y=10;
   if(y++>9 && y++!=10 && y++>11)
      printf("%d", y);
   else
      printf("%d", y);
}

Question ID
#1195
Subchapter
Operators and Enums in C Language
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A 11
  • B 12
  • C 13
  • D 14
Correct Answer: C

Explanation

13

Share This Question

Share this MCQ with your friends or study group.