Aspire Faculty ID #17750 · Topic: JECA MCA 2025 · Just now
JECA MCA 2025

What will be the output of the following C code? 
#include int main() 
{ 
int x; 
x = 4<3?100:3==3?2?50:75; 
printf("%d", x); 
return 0; 
}

Solution

4<3 false → evaluate next → 3==3 true → 2?50:75 → 50.

Previous 10 Questions — JECA MCA 2025

Nearest first

Next 10 Questions — JECA MCA 2025

Ascending by ID
Ask Your Question or Put Your Review.

loading...