Yaali的博客byte占1个字节,char占2个字节,short占2个字节,int占4个字节,long占8个字节,float占8个字节,double占16个字节。/** To change this license header, choose License Headers in Project Properties.* To change ...
月上纱窗的博客unsigned int 与 int相加: unsigned int val = 100; if (val - 150 > 0) printf("result is : unsigned int\n"); ... printf("result is : int\n...所以 unsigned int与int作运算时,int会自动转化为unsigned in