
Data Types in C++ 117
Type Modifiers
The keywords signed, unsigned, short, and long are type modifiers. A type modifier
changes the meaning of the base data type to produce a new data type. Each of these type modi-
fiers is applicable to the base type int. The modifiers signed and unsigned are also appli-
cable to the base type char. In addition, long can be applied to double data type. When the
base type is absent from a declaration, int is supposed.
Examples:
long l; // int is implied
unsigned char c;
signed int s; // signed is default
unsigned long int u; // int OK, not necessary
The void Data Type
The type void is empty data type. It can be used ...