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 / 052.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-06  |  765KB  |  2550x3300
Labels: book | crt screen | reckoner
OCR: Chapter Getting Started main() consists of calls to printf) and scanf() plus the return statement. Lang The declarations JO those functions are in the header file stdio.h. The last printf call contains call to the function mi Lec as a parameter Note 1: The identifier, MILEAGE is defined to be the constant value 28 As it IS this program calculates the miles that can be traveled based on 28 miles per gallon Ifa program needed calculate the miles based on 35 miles per gallon, this constant definition should be changed to 35 and the program recompiled. No other change needed Note 2. The preprocessor finds all occurrences of the identifier MILEAGE like the one on this line and replaces them with the value 28. Note 3: The call tomiles appears as the second argument to this pr intf call. In les t ...