May 2012
Intermediate to advanced
679 pages
16h 56m
English
C++ allows us to define pointers to functions. Consider the following declaration:
int (*p)( int *a, int n ) ;
This declaration defines a pointer p to a function. It can point to any function satisfying the following conditions:
In general terms, when you declare a pointer to a function, it is capable of pointing to any function with two conditions:
A program may have several such functions. The pointer p can point to any one of them at a given time. We can associate the pointer ...
Read now
Unlock full access