摘要: /*Filename: getmemory.cVersion: 0.0.1Date: 11-02-2012 12:58Description: use malloc() ,free() to apply ... 阅读全文
posted @ 2012-07-06 20:48 wdliming 阅读(321) 评论(0) 推荐(0) 编辑
摘要: /*Filename: getmemory.cVersion: 0.0.1Date: 11-02-2012 12:58Description: use malloc() ,free() to apply ... 阅读全文
posted @ 2012-07-06 20:48 wdliming 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 首先sizeof在C语言里是关键字,而不是一个函数,下面的语句执行之后,i的值是保持不变的,j = sizeof(++i + ++i);下面是C语言里部分数据类型的sizeof的值:下面是一道C语言的面试题:#i... 阅读全文
posted @ 2012-07-06 16:39 wdliming 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 首先sizeof在C语言里是关键字,而不是一个函数,下面的语句执行之后,i的值是保持不变的,j = sizeof(++i + ++i);下面是C语言里部分数据类型的sizeof的值:下面是一道C语言的面试题:#i... 阅读全文
posted @ 2012-07-06 16:39 wdliming 阅读(134) 评论(0) 推荐(0) 编辑
摘要: case后面跟表达式的必须是常量表达式,这个值和全局变量的初始值一样必须在编译时计算出来。The case constant expression must be a constant integer value... 阅读全文
posted @ 2012-07-06 14:08 wdliming 阅读(202) 评论(0) 推荐(0) 编辑
摘要: case后面跟表达式的必须是常量表达式,这个值和全局变量的初始值一样必须在编译时计算出来。The case constant expression must be a constant integer value... 阅读全文
posted @ 2012-07-06 14:08 wdliming 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #include int checkCPU();int main(){ int a=1; char * p=(char*)&a; if(*p==1) printf("Little edian\n"); else... 阅读全文
posted @ 2012-07-06 13:44 wdliming 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include int checkCPU();int main(){ int a=1; char * p=(char*)&a; if(*p==1) printf("Little edian\n"); else... 阅读全文
posted @ 2012-07-06 13:44 wdliming 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int a=1; char * p=(char*)&a; if(*p==1) printf("Little edian\n"); else printf("Big e... 阅读全文
posted @ 2012-07-06 11:42 wdliming 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include int main(){ int a=1; char * p=(char*)&a; if(*p==1) printf("Little edian\n"); else printf("Big e... 阅读全文
posted @ 2012-07-06 11:42 wdliming 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 计算机系统中,我们是以字节为单位的,每个地址单元都对应着一个字节,一个字节为 8bit。但是在C语言中除了8bit的char之外,还有16bit的short型,32bit的long型(要看具体的编译器),另外,对... 阅读全文
posted @ 2012-07-06 11:18 wdliming 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 计算机系统中,我们是以字节为单位的,每个地址单元都对应着一个字节,一个字节为 8bit。但是在C语言中除了8bit的char之外,还有16bit的short型,32bit的long型(要看具体的编译器),另外,对... 阅读全文
posted @ 2012-07-06 11:18 wdliming 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 这里涉及大小端的问题,我记为“小高高,小弟弟(低低)”,就是:“小端模式,是指数据的高位保存在内存的高地址中,数据的低位保存在内存的低地址中”这是记小端模式的,有点黄,不过好记!那么大端模式就和这个相反喽!!~~... 阅读全文
posted @ 2012-07-06 10:58 wdliming 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 这里涉及大小端的问题,我记为“小高高,小弟弟(低低)”,就是:“小端模式,是指数据的高位保存在内存的高地址中,数据的低位保存在内存的低地址中”这是记小端模式的,有点黄,不过好记!那么大端模式就和这个相反喽!!~~... 阅读全文
posted @ 2012-07-06 10:58 wdliming 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 直接上图:输出均已字节为单位忘了,还有float的,float的值为4(bytes) 阅读全文
posted @ 2012-07-06 10:34 wdliming 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 直接上图:输出均已字节为单位忘了,还有float的,float的值为4(bytes) 阅读全文
posted @ 2012-07-06 10:34 wdliming 阅读(120) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示