Question PRG-C-0045
MediumWhat is the output of this program?
#include <stdio.h>
int main() {
int x = 7;
switch (x % 4) {
case 1: printf("one ");
case 3: printf("three ");
case 2: printf("two ");
break;
default: printf("other ");
}
return 0;
}
- A.
three two
- B.
other
- C.
Sign up free to see the answer and a step-by-step explanation.