Wednesday, 17 August 2016

FUNCTION POINTERS in C++

 
RETURNING FUNCTION POINTER:

Syntax for returning function pointer is as follows

Return_type_of_returning_function (*function_name(returning_function_arguments))(actual function arguments);

For Eg:

int (*myFunc(int))(char)

Here myFunc is a function which returns the function of type int (*)(char).