![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言深度剖析
文章平均质量分 79
nanyo
这个作者很懒,什么都没留下…
展开
-
C语言之各种符号
*****comment*****/**/这种习惯的注释不能嵌套。编译器会将注释部分剔除,但不是简单的删除,而是用空格代替原来的注释,比如int/*...*/i是合法的,但in/*...*/t i不合法。y = x/*p编译出错,编译器把/*当成一段注释的开始。y = x/ *p或y = x/(*p)正确。*****back slash***原创 2012-09-28 03:53:27 · 1173 阅读 · 0 评论 -
C语言之数组与指针
*******数组首元素的地址 vs 数组首地址*******/*a: bff0660ca+1: bff06610&a: bff0660c&a+1: bff06620*/int a[5] = {1,2,3,4,5};printf("a: %x\n", a); //address of first element in the arrayprintf("a+1原创 2012-09-28 03:57:19 · 720 阅读 · 0 评论 -
C语言之预处理
ANSI C预处理命令:#define, #undef, #include, #if, #else, #elif, #endif, #ifdef, #ifndef, #line, #error, #pragmaANSI C宏:_LINE_:表示正在编译的文件的行号_FILE_:表示在横在编译的文件的名字_DATE_:表示编译时刻的日期字符串,例如“25 De原创 2012-09-28 03:54:26 · 764 阅读 · 0 评论 -
C语言之各种关键字
C语言32个关键字:auto, int, double, long, char, float, short, signed, unsigned, struct, union, enum, static, switch, case, default, break, register, const, volatile, typedef, extern, return, void, continue,原创 2012-09-28 03:50:38 · 758 阅读 · 0 评论 -
C语言之大小端模式
//little endian: the least significant byte at lowest address.//big-endian: the most significant byte at lowest address.int checkSystem(){ //union size is the largest size of its fields. And all原创 2012-09-28 03:56:20 · 778 阅读 · 0 评论