Mail Archives: djgpp/1997/04/30/18:50:08
Brett J. Wiesner (brett AT allegro DOT cs DOT tufts DOT edu) wrote:
: could someone tell me how many bits there are in each of these:
: int
32
: long
32
: char
8
: short
16
: long long
64 AFAIK; never used it
: under djgpp of course. im using a pentium if it matters.
As mentioned elsewhere in this group, use `int' for general-purpose whole
numbers, char for characters, and the others if only you specifically need
a number of that bit size (e.g. reading data from a binary file). If you
need a 32 bit integer, use long rather than int, for portability. MAXINT
is the largest value an int can take, for reference.
--
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -