关于这三者的区别stackoverrflow里有一个答案是这样说的: 3.9.1 Fundamental types [basic.fundamental] 1 Objects declared as characters char) shall be large enough to store any member of the implementation's basic character set. If a character from this set is stored in a c
以下来自msdn: Objects of an integral type can be converted to another wider integral type (that is, a type that can represent a larger set of values). This widening type of conversion is called "integral promotion." With integral promotion, you can
https://en.wikipedia.org/wiki/C_data_typesIn practice, char is usually eight bits in size and short is usually 16 bits in size (as are their unsigned counterparts).char多为8位,As char's size is always the minimum supported data type, no other data types