例如,为什么一个unsigned short和之间的操作结果int总是产生一个int?
unsigned short
int
unsigned short s = 65535; int i = 65535
表达式typeid(s * i * i).name(),给出一个超出范围int但仍隐式转换的值返回int,为什么?
typeid(s * i * i).name()
c++ type-conversion
c++ ×1
type-conversion ×1