Declaring a C++ function pointer type

There are some stuff that I can’t seem able to remember, no matter how hard I try. The C++ syntax of a function pointer type is one of them.

Just one example : a function pointer type for a function returning a bool and taking an int and a char* as parameters :

typedef bool (*FUNCTION_PTR)( int, char*);

Leave a Reply

Your email address will not be published. Required fields are marked *