home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_03 / 152.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  545KB  |  2550x3300
Labels: book | crt screen | reckoner
OCR: 152 Chapter 3 Basic Data Types Example 3-5 limits.c iimits.c Synopsis Displays values of some constants in limi ts .h. Obi ective To illustrate limi ts.h and the rel ranges of va lues that can be represented with the CH integral types S Incl lude Files incl lude <stdi h> incl lude <limi ts h> int main voic printf "Contents of limits .h\n\n" C pri intf "Const -ant Values pri intf In" printf( "CHAR BIT tslld\n" CHAR BIT printf "CHAR MAX t11d nCHAR MIN a\n" CHAR MAX, CHAR MIN printf "SCHAR MAX t1ld nSCHAR MINV \t%11d \n" SCHAR MAX SCHAR MIN printf( "INT MAX t$1ld\nINT MIN \tlid\n INT MAX printf( "LONG MAX t%11ld\nLONG MINt INI %11] NIW ld\n" LONG MAX LONG MIN printf( "SHRT MAX\ tllhd nSHRT n" SHRT MAX SHRT MIN printf "UCHAR MAX\ t11u\nUINT MAX\tsllu\n", UCHAR MAX, UINT MAX pr intf( "ULONG MAX ...