Vidyalelo
C Programming · Q47

Operators and Expressions

Programming · C Programming · question 47

Q47

Find the output of the following program. #include void main() int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y);

A.
11
B.
12
Answer
C.
13
D.
14
E.
Compilation error

Answer: Option B

Solution

Answer: Option B
Solution:

Since the second condition is false so, further conditions will not be checked, it will be skipped.