signed, unsigned, short, and long (type modifiers)
A type modifier alters the meaning of the base data type to yield a new
type.
Each of these type modifiers can be applied to the base type int.
The modifiers signed and unsigned can also be applied to the base type char.
In addition, long can be applied to double.
When the base type is omitted from a declaration, int is assumed.
Examples:
long x; /* int is implied */
unsigned char ch;
signed int i; /* signed is default */
unsigned long int l; /* int OK, not needed */
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment