C语言问题整理
文章平均质量分 70
C语言问题整理
从善若水
本人就职于国际知名终端厂商,负责modem芯片研发。在5G早期负责终端数据业务层、核心网相关的开发工作,目前牵头6G算力网络技术标准研究。
展开
-
C语言的“bug“ 隐式类型转换
文章目录C语言的"bug" 隐式类型转换原始code希望的输出实际输出为什么正确codeC语言的"bug" 隐式类型转换原始code#include<stdio.h>#include<string.h>int main(){ const char * test_str="C trap"; printf("pre-view the length of test_str is %u.\n",strlen(test_str)); if(-1 < strl原创 2021-03-08 23:31:23 · 499 阅读 · 6 评论 -
C语言 GOTO 你不知道的事情
C语言 GOTO 你不知道的事情文章目录C语言 GOTO 你不知道的事情错误Code编译器报错内容为什么会出现怎么解决错误Code#include <stdio.h>int main(){ int a=1,b=2; goto End; int c[b];End: return 0;} 编译器报错内容In function 'main':[Error] jump into scope of identifier with va原创 2021-02-26 13:53:10 · 1591 阅读 · 3 评论