c语言的label后面不能直接跟变量申明
2024-08-30 12:36:46
int x = ;
goto JUMP;
printf("x is : %d\n",x);
JUMP:
int a = ; <=== 错误,lable后面不能申明变量,只能是表达式语句(statement),哪怕是空语句..
printf("%d",a);
int x = ;
goto JUMP;
printf("x is : %d\n",x);
JUMP: ; /// 空语句,正确
int a = ; // 前面有空语句,正确
printf("%d",a);
label只在函数内有效
最新文章
- js让text值不可改变,同<;input type=";text"; readonly=";readonly"; />;
- 在Application中集成Microsoft Translator服务之翻译语言代码
- 使用 WSO2 API Manager 管理 Rest API
- DB2环境设置
- c++ 操作注册表
- Android使用默认样式创建View的几个姿势
- [原创]谷歌插件 - YE启动助手(YeLauncher)
- AutoCompleteTextView ArrayAdapter
- file.encoding到底指的是什么呢?
- ExtJs radiogroup form.loadRecord方法无法赋值正确解决办法
- python selenium 百度登录
- 前端基础之DOM和BOM
- 题解-洛谷P1020P导弹拦截(求单调序列长度的优化)
- Flask--异常处理
- YYKit @autoreleasepool 使用,优化内存
- Smart/400开发上手2: COBOL批处理程序处理过程
- POJ1651(KB-E)
- JDBC之 连接池
- wpgcms---碎片管理的使用
- 安装启动apache2.4后报Invalid command &#39;order&#39;, perhaps misspelled or defined by a module not included