variable-declaration- все статьи тега ➜ страница 0
Объявление переменной после метки goto
сегодня я нашел одну интересную вещь. Я не знал, что нельзя объявить переменную после метки goto. компиляция следующего кода #include <stdio.h> int main() { int x = 5; goto JUMP; printf("x is : %dn",x); JUMP: int a = 0; <=== giving me all sorts of error.. printf("%d",a); } выдает ошибки типа temp.c: In function ‘main’: temp.c:7: error: expected expression before ‘int’ temp.c:8: error: ‘a’ undeclared (first use in this function) temp.c:8: error: (Each undeclar ...