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 / 649.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-20  |  758KB  |  2550x3300
Labels: book | crt screen | reckoner
OCR: 11.7 Defining Macros 649 11.7 Defining Macros In C a utility can be written either as function or as macro macro is like function in that the macro consists of C source code which IS defined and associ- ated with an identifier. Calling macro much like calling function; with the consists actual of placing the name of the macro in the source code accom panied parameters in comma -separated list enclosed in parentheses macro differs from function that when program has been translated to object code, the code for the macro S expanded in every place where the macro was called, while the code for a function remains in a separate location in memory. Executing function requires trans ferring control to separate part of the object code memory and transferring control back after execution is finishe ...