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 / 149.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  754KB  |  2550x3300
Labels: book | reckoner
OCR: Unsigned Types Note 1:Thc variable pos itive of type uns. icned int is declared The key- word int is optional That is. the declaration could also have read unsigned int positi ve Note 2 The value 65535 IS assigned to both variables. This value the largest value that can be represented with 16 bits and an unsigned type. Note that this program will compile on rnost compilers even though the value could be out of range for the variable ar The following pr intf ( call both values The conversion speci fication 1 used for the uns igned int Note 3: In all the calls to printf () the control string 6 6d\n The conversion specification ng corres sponds to the parameter pos tive The u causes conversion of the uns igned type The will cause the output of this quantity to occupy at least 6 spaces In thes ...