home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_08 / 491.jpg < prev    next >
Joint Photographic Experts Group Image  |  2014-01-29  |  817KB  |  2550x3300
Labels: binder | book | reckoner
OCR: Pointers to Functions 491 any legitimate type The values that can be assigned to such variable are the addresses of functions in the source code. An example of an ANSI prototype of a pointer to a function returning an int int *fnptr )( char int com nter- Notice that the typc and number of the parameters to the function are specified also To decode this declaration, we note first that anything of the form to a fnptr) is an int. Also we note that the parentheses around +fnptr serve to bind the identifier fnptr more closely to the than to the pair of parentheses around the ion parameters. Remov ring the parentheses next, we see that fnptr IS function returning an int and taking two parameters, char and an int The final step ion removes the dereferencing operator, and tells us that fnptr point ...