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 / 651.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  655KB  |  2550x3300
Labels: binder | book | crt screen | poster | reckoner
OCR: 11.7 Defining Macros 651 n con- int main void int pr intf( "Calculati ing the maxi imum of two numbe rs n' printf ID ease enter the first nonnegative number get int pr. intf se enter the nonnegative number S. For geti int( & ted as printf "The max imum of 20 and \n" MAX *x ; nt Note 4 return 0 nar( macro getint int getint int *val int iochar, num; num whil iochar getchar() =i \n{ Note 5 isdi igi iochar Note num 10 num iochar printf( "Illegal input gc\n, iochar Note while iochar getchar() return( va num, cur r The functions smain() and get int comprise this program Calls to get int to process the input and calls to printf) for make up main() The function get int() reads an integer value from standard input and tc returns the value in the location pointed to by its parameter It adds some err ...