Question 176
Previous Year Question
SSC IMD SA 15-Dec-2022 1st Shift
PYQ
[Q.76] निम्नलिखित C भाषा code का output क्या है?
C
void main()
{
int x=0,y=4,z=1,w;
w=x<1?y<1&&z>1?10:20:30;
printf("%d",w);
}Detailed Solution
x<1 is true, then y<1 is false, so the nested conditional returns 20.
✓ Saved