Answers

Question and Answer:

  Home  C++ Programming

⟩ How do I initialize a pointer to a function?

This is the way to initialize

a pointer to a function

void fun(int a)

{

}

void main()

{

void (*fp)(int);

fp=fun;

fp(1);

}

 190 views

More Questions for you: