Just wondering why exactly this produces an error in gcc:
Code:int main() {
switch (0)
case 0:
int a;
return 0;
}
Why would it not allow a variable declaration as the first line in a case statement?Code:
caseVariable.c: In function 'main':
caseVariable.c:5: error: expected expression before 'int'