The following program fragment
if (2 < 1)
;
else
x = (2 < 0) ? printf("one") : printf("four");
printf ("%d", x);
A. | prints nothing |
B. | results in a syntax error |
C. | prints four 0 |
D. | none of the above |
Answer : D Explanation : here else clause will be executed . Since 2 < 0 is false , 4 will be printed |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |