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 · 1407 阅读 · 0 评论 -
C语言之数组与指针
*******数组首元素的地址 vs 数组首地址******* /* a: bff0660c a+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 array printf("a+1原创 2012-09-28 03:57:19 · 822 阅读 · 0 评论 -
C语言之预处理
ANSI C预处理命令: #define, #undef, #include, #if, #else, #elif, #endif, #ifdef, #ifndef, #line, #error, #pragma ANSI C宏: _LINE_:表示正在编译的文件的行号 _FILE_:表示在横在编译的文件的名字 _DATE_:表示编译时刻的日期字符串,例如“25 De原创 2012-09-28 03:54:26 · 860 阅读 · 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 · 869 阅读 · 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 · 860 阅读 · 0 评论
分享