home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_06 / 344.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-01  |  501KB  |  2550x3300
Labels: book | poster | reckoner
OCR: 344 Chapter Keeping Control Example 6-7: return2.c return2 Synopsis Posit ons after input the end stream of to the the input cha racter line. after Obj jective Tc illus trate return statement with ar express ion Incl ude Files #incl ude <stdio .h> Constant Definitions #define END OF LINE \n #defi ine DELIMITER Functi .on Protot ypes int look PRECONDI for :NOILI del imi del vari iter( imi ab ter char es and del imi end ter of Line char can end be of line character POSTCONDITION: to and Reads del 0 imi otherwi line iter of se Returns input and wher compares del imiter each is character found, int main void int found; printf "Enter line of text with 1#F \n> ); if found look for del imi ter DELIMITER END OF LINE /* Note I printf( found "found c.\n DELIMITER Note else return printf( 0; "read un ...