unsigned Unsigned Integral Data Type
The keyword unsigned may be applied to the char, short int, int, and
long int types. The size (and representation) of an unsigned type is
implementation-defined.
Notes: In Turbo C, the size of an unsigned char object is one
byte and its value ranges from 0 to 255. Unsigned short
int and unsigned int objects are two bytes and range in
value from 0 to 65535. Unsigned longs are four bytes and
their values range from 0 to 4294967295.
If unsigned is used without the keyword int, the int is
assumed.
By default, "plain" chars are signed.
-------------------------------- Example ---------------------------------
unsigned char letter;
unsigned short int value;
unsigned short amount;
unsigned int total;
unsigned count;
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster