Difference between Function to pointer and pointer to functionA function to pointer is one which returns a pointer.
Ex: int *add(int num1,int num2) { . . }
A pointer to function points to a function.
Ex: int add(); int (*addi)(); addi =&add; then (*addi)() represents add();
A pointer to a function is a pointer that points to a function. A function pointer is a pointer that either has an indeterminate value, or has a null pointer value, or points to a function
|