language-icon Old Web
English
Sign In

Function pointer

A function pointer, also called a subroutine pointer or procedure pointer, is a pointer that points to a function. As opposed to referencing a data value, a function pointer points to executable code within memory. Dereferencing the function pointer yields the referenced function, which can be invoked and passed arguments just as in a normal function call. Such an invocation is also known as an 'indirect' call, because the function is being invoked indirectly through a variable instead of directly through a fixed identifier or address. A function pointer, also called a subroutine pointer or procedure pointer, is a pointer that points to a function. As opposed to referencing a data value, a function pointer points to executable code within memory. Dereferencing the function pointer yields the referenced function, which can be invoked and passed arguments just as in a normal function call. Such an invocation is also known as an 'indirect' call, because the function is being invoked indirectly through a variable instead of directly through a fixed identifier or address.

[ "Pointer (computer programming)", "Reference" ]
Parent Topic
Child Topic
    No Parent Topic