Pointers to functions in C++

In C++, just as we can have pointers to variables, we can have pointers to functions as well. The general syntax of a pointers to a functions is: return-type (*pointer-name) (list of parameter); For example: void (*p) (float, int); In the above declaration, a pointer to a function returns void and takes the two formal arguments of float and int types respectively. After declaring a pointer to a function, the address of the function must be assigned to a pointer as follows: p = &function-name; where p is a pointer variable. Through pointer to function, the function is called as follows: A = (*p) (x, y); where, x and y are actual parameters, and A is a variable in which the function’s return value is stored, p is a pointer name which points to the function Let us illustrate pointer to function with a programming example as follows: #include<iostream.h> void...