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 / 134.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  649KB  |  2550x3300
Labels: book | reckoner
OCR: 134 Chapter Basic Data Types Type short occupies 16 bits. The maximum value that can be represented in that shor type is 32767 The value 32767 assigned to all three variables. When short- pri var S incremented by 1. the mathematical value becomes 32768 which is larger than the maximum value that can be stored in that type; overflow occurs The out put of "this program indicates how the overflow handled. pri Note that overflow does not occur on the variables 01 type int and type Long pri since 32768 is within the range that can be handled with those types. If more than two by tes are used to store a type, then overflow will not oeer with that type. It is int also possible (but not as likely) that type short stored in more than two bytes pri so that overflow might not occu at all You will nee ...