- 论坛徽章:
- 0
|
回复 8# wawxdyy
是implementation-defined的呢
Each enumerated type shall be compatible with char, a signed integer type, or an
unsigned integer type. The choice of type is implementation-defined,10 but shall be
capable of representing the values of all the members of the enumeration. The
enumerated type is incomplete until after the } that terminates the list of enumerator
declarations.
10 An implementation may delay the choice of which integer type until all enumeration constants have
been seen. |
|