Question PRG-C-0052
MediumWhat is the output of this program?
#include <stdio.h>
int main() {
int x = 10;
int y = (x > 5) ? (x < 20 ? 1 : 2) : 3;
printf("%d", y);
return 0;
}
- A.
10
- B.
1
- C.
Sign up free to see the answer and a step-by-step explanation.