Function Pointer - Simple Function Pointers

Simple Function Pointers

The simplest implementation of a function (or subroutine) pointer is as a variable containing the address of the function within executable memory. Older third-generation languages such as PL/I and COBOL, as well as more modern languages such as Pascal and C generally implement function pointers in this manner. Such pointers in older languages are generally less type-safe than in more modern languages, though, since the latter associate more typing information with a function pointer variable, such as the data type of the return value of the function and the data type information of the parameters to the function.

Read more about this topic:  Function Pointer

Famous quotes containing the words simple and/or function:

    ‘Tis the gift to be simple ‘tis the gift to be free
    ‘Tis the gift to come down where you ought to be
    And when we find ourselves in the place just right
    ‘Twill be in the valley of love and delight.
    —Unknown. ‘Tis the Gift to Be Simple.

    AH. American Hymns Old and New, Vols. I–II. Vol. I, with music; Vol. II, notes on the hymns and biographies of the authors and composers. Albert Christ-Janer, Charles W. Hughes, and Carleton Sprague Smith, eds. (1980)

    The mother’s and father’s attitudes toward the child correspond to the child’s own needs.... Mother has the function of making him secure in life, father has the function of teaching him, guiding him to cope with those problems with which the particular society the child has been born into confronts him.
    Erich Fromm (1900–1980)