Why the code doesn't work unless I remove the comment?
#include <stdio.h>
int main(){
int num = 5;
switch(num){
case 5:
//printf("");
int another = 1;
printf("%d", num+another);
break;
}
}
gcc returns an error:
prog.c: In function ‘main’:
prog.c:7:13: error: a label can only be part of a statement and a declaration is not a statement
Thanks.