unsigned 可以定义整型(short int long)、char。
只能保存正数和0.
eg:
unsigned int a=101;
unsigned int a=-101;//error
相关推荐