Find the output of the following program.
#includevoid main(){ int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y);}
#includevoid main(){ int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y);} 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);} Correct Answer 12
Since the second condition is false so, further conditions will not be checked, it will be skipped.
মোঃ আরিফুল ইসলাম
Feb 20, 2025