#include <stdio.h> void main() { unsigned int a=65535; printf("%d",a); system ("pause"); }
#include <stdio.h> void main() { unsigned int a=65535; printf("%d",a); system ("pause"); }
日期:2014-12-24 11:20:59 人气:1
a的类型错了. 你用的unsigned int表示是无符号数,即正数.
用short a=65535; 就能输出-1