摘要: C语言在处理无符号数时,将有符号数强制类型转换为无符号数进行运算。 这种行为对一般的算术运算没有影响,比如 1 int a=-10; 2 unsigned b=12; 3 printf("%d\n",a+b); 4 printf("%u\n",a+b); 运行结果 但是对于比较运算符(>,<,==) 阅读全文
posted @ 2020-01-01 21:49 CofJus 阅读(297) 评论(0) 推荐(0)