How can I call a function using a function pointer?
You can do the following: Suppose you have your A,B & C function as the following: bool A() { ….. } bool B() { ….. } bool C() { ….. } Now at some other function, say at main: int main() { bool (*choice) (); // now if there is if-else statement for making “choice” … Read more