c语言break可以作为变量名吗?

如题所述

不可以。
break是C语言的关键字,关键字不可以用作变量名。
目前C语言的关键字有32个:
char, unsigned, signed, short, int, long, float, double,
void, struct, union, enum, typedef, sizeof, return,
auto, const, extern, register, static, volatile,
if, else, switch, case, for, do, while, goto, continue, break, default
以上32个关键字都不能用作标识符。
温馨提示:答案为网友推荐,仅供参考
相似回答