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 / 143.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  543KB  |  2550x3300
Labels: book | crt screen | daybook | reckoner
OCR: Character Variables 143 e repre- ger type char Example 3-3: charvar.c a vari- pe, fol charvar.c egers, on. The Synopsis Variables of type char and int are decl ared iar The sizeof() the char type is disp layed Then avail value assigned to each var iable and ble can displaved with conversion ble can speci f icat ions ue that Objective Illustrates the relati ionship between type char with and type int and some of the di fferent aracter convers ion speci f ications witn printf char lue of Incl lude Files This #incl .ude <stdio h> value int main void senta- int char intvar; charvar, Note l vith Note 2 printf( "The sizeof type char is d byte(s) \n\n" sizeof char cha rvar Note 3 Note printf( "charvar is the character c.\n cha rvar printf( "It can be displ layed ir dec imal d\n" charvar teger pri ...