#include <stdio.h>
int main(int argc, char *argv[]){
char a = 'c';
switch('c'){
case a:
printf("hi\n");
}
return 0;
}
Вышеупомянутое не будет компилироваться для этой ошибки:
case label does not reduce to an integer constant
Почему это запрещено?