A simple type name is the name of a complete type.
Syntax
simple-type-name:
complete-class-name
qualified-type-name
char
short
int
long
signed
unsigned
float
double
void
Table 6.2 shows how the simple type names can be used together.
Table 6.2 Type Name Combinations
Type | Can Appear With | Comments |
int | long or short, but not both | Type int implies type long int. |
long | int or double | Type long implies type long int. |
short | int | Type short implies type short int. |
signed | char, short, int, or long | Type signed implies signed int. The most-significant bit of objects of type signed char and bit fields of signed integral types is taken to be the sign bit. |
unsigned | char, short, int, or long | Type unsigned implies unsigned int. The most-significant bit of objects of type unsigned char and bit fields of unsigned integral types is not treated as the sign bit. |