?
Find the output of the following program.
Find the output of the following program.
#include<stdio.h>
void main()
{
int y=10;
if(y++>9 && y++!=11 && y++>11)
printf("%d", y);
else
printf("%d", y);
}
#include<stdio.h>
void main()
{
int y=10;
if(y++>9 && y++!=11 && y++>11)
printf("%d", y);
else
printf("%d", y);
}
Answer & Solution
Correct Answer:
Option
B
Since the second condition is false so, further conditions will not be checked, it will be skipped.
Join the Discussion
Login to post a comment or share your explanation.
Login(Y++>9)
(10++>9)
Y=11
So , second condition is false y=11