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 / 142.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  781KB  |  2550x3300
Labels: book | collection | counter | reckoner | shelf
OCR: 142 Chapter Basic Data Types The range of integers from 0to 127 (0 to 2 (and more) can be repre- sented with bits (usually 1 byte) on computer prov rides an integer type named char to represent characters or integers in this range Values of type char are stored in one byte of memory The declaration of variable of type char is similar to declaration of a vari- able of type int The simplest form of declaration starts with the data type fol- lowed by the variable names, and terminated by semicolon. As with integers, variable of type char may or may not be initialized at the time of dec claration The program charvar.c in Example 3-3 has declaration ofa variable of type char The program also illustrates some of the other modes of output that are avail- able with the pri intf) function. For exam ...