From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: # bits in int,char, long, shrttt Date: 30 Apr 1997 18:34:00 GMT Organization: Oxford University, England Lines: 24 Message-ID: <5k83ao$5sl@news.ox.ac.uk> References: <5k81fu$jah$1 AT d2 DOT tufts DOT edu> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 Merton College, Oxford