标签:blog sp div c log amp r ef bs
#define ISUNSIGNED(x) ((x)>=0&&~(x)>=0) #define ISSINGNED(x) ((x)>=0?((~(x))<0?true:false):true)
有符号与无符号的区别:最高位是否为1 ,有符号最高位为1表示负数.
C语言 宏判断有符号无符号 整型变量
原文地址:http://www.cnblogs.com/start2014/p/4005760.html