摘要: *(ptr++) += 123;等价于:*(ptr) = *(ptr) + 123; ptr++;而不是:*(ptr++) = *(ptr++) + 123;程序员面试宝典p32#include int main(){ unsigned char a = 0xA5; unsigned char b = ~a >> 4 + 1; printf("%d\n",b);}答案是250.1、算术优先级:“~” 大于 “+” 大于 “>>”2、类型转换:对于混合类型的算术表达式,应将其类型变换为最宽的数据类型。在本题中,~a >> 4 + 1 ,常量 阅读全文
posted @ 2014-03-06 10:31 挡不住会飞的鸡 阅读(340) 评论(0) 推荐(0) 编辑