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 / 166.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-21  |  482KB  |  2550x3300
Labels: book | computer | crt screen | daybook | jotter | monitor | poster | reckoner
OCR: 166 Chapter Basic Data Types Obj iective Illust rates use of masks with bit operati ions Include Files .nc. lude <stdio h Cons tant Definitions #define HIGHBIT 128 Note 1 #de ine NOHIGHBIT 127 fdefine WP LINEFEED 138 #de .ne WP "CARRETURN 141 int main voi int iochar; while iochar getchar() EOF HIGHBIT iochar Note 2 iocha LINE FEED iochar Wp CARRETURN Note 3 put tchar( iochar NOH GHBIT Note alse putchar( iochar return 0 Several preprocessor constants are defined The function ma in consists of a file single is wh sensed. ile loop The that body of will read the while terminal loop input contains character by single character -else until statement end-of- The statement associated with the if 1s another statement. Note 1. The preprocessor constant HIGHB T T has the following bit pattern: 000000 ...