home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_01 / 008.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-11  |  795KB  |  2550x3300
Labels: book | poster | reckoner | sky
OCR: Chapter Getting Started There are seven tokens in the function does noth ing () The tokens are: the keyword void, the identifier does nothi ing, the opening parenthesis another occurrence of void the closing parenthesis, the opening brace and the closing brace Each token has special meaning to the compiler The First C Program Now that we know a little about functions, we are ready to start writing pro- grams. Every program must contain certain elements In particular, 11 execution must have begins function with the name mai When ( program executes, the with the statements in the function ma in Example 1-1 illustrates short pro- gram. compiles without errors or warnings on an ANSI compiler and can be executed Note that main function and therefore must have the same ele- ments as the function ...