
Function Pointer
Pointer (computing), C++, Fortran
Barnabas Cristobal(Editor)
Cede Publishing
Published on 6. May 2026
Book
Paperback/Softback
132 pages
978-613-6-58143-9 (ISBN)
Description
Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. A function
pointer is a type of pointer in C, C++, D, and other C-like programming
languages, and Fortran 2003. When dereferenced, a function pointer can
be used to invoke a function and pass it arguments just like a normal
function. In programming languages like C, function pointers can be used
to simplify code by providing a simple way to select a function to
execute based on run-time values. Function pointers do always point to a
function having a specific signature. Thus, all functions used with the
same function pointer must have the same parameters and return type.
Functors, or function objects, are similar to function pointers, and can
be used in similar ways. A functor is an object of a class type that
implements the function-call operator, allowing the object to be used
within expressions using the same syntax as a function call. Functors
are more powerful than simple function pointers, being able to contain
their own data values, and allowing the programmer to emulate closures.
They are also used as callback functions if it is necessary to use a
member function as a callback function.
More details
Language
English
Place of publication
United States
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 220 mm
Width: 150 mm
Thickness: 8 mm
Weight
215 gr
ISBN-13
978-613-6-58143-9 (9786136581439)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification