(Choose 1 answer)
Why the following code is wrong?
int choice 45/50-CAP 0, b = 1, c = 2;
switch(choice){
case a:
printf("case A happens!");
break;
case b:
printf("Wow, that is B!");
break;
case c:
printf("C please!");
}
break;
A. Lack of default at the end of switch block
B. Can not assign value of choice, a, b, and c at the declaration time
C. The value after the "case" keyword must be the constant
D. The above code is correct.
FUO
2: 46