home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 678.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-12  |  762KB  |  2550x3300
Labels: book | counter | jotter | reckoner | shelf
OCR: 678 Chapter Discovering C++ This program consists of two functions, main() and oad() The function di de main() consists ofa prompt an input statement, an f-e .se statement, and I the return statement The function odd( consists only ofa return statement. Note 1: This line contains the prototype declaration of the function odd() The keyword inl .ne indicates that the function will be expanded in the line of code where is called. Note 2 The lse statement has the same syntax and execution patterm as in In this example the return value from odd is tested. If the value lse, the statement after the se executed: if the expression true, the statement before the se executed The remainder of the control statements: the whi le loop the for loop, the do-while loop, the swi tch statement, the br rea sta ...