Export (0) Print
Expand All

Simple Type Names

A simple type name is the name of a complete type.

Grammar

simple-type-name:
complete-class-name
qualified-type-name
char
short
int
long
signed
unsigned
float
double
void

The following table shows how the simple type names can be used together.

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.

See Also

C++ Type Specifiers

Show:
© 2014 Microsoft