home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_11 / 653.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  668KB  |  2550x3300
Labels: book | crt screen | reckoner | shelf
OCR: 11.7 Defining Macros 653 removing the line inc] Lude <ctype h> from the source in macros.c and lreplace it with your macro definition 28 The function get int returns 1in case an error in conv version has occurred and otherwise. Currently, the funct tion ma in the input ignores the return value. Therefore, if there is an the will be in error also Modify the program to correct this deficiency Have main check the return value from get nt and repeatedly ask for input until the user gets the input correct Word of Caution The substitution for parameters in macros exact If the argument 1S times this or causes that is what is substituted for the parameter in the macro. Many unexpected problems Some of them are illustrated in the program squares.c of Example 11-16. In this program, a function and t ...