How do I initialize a pointer to a function?

Submitted by: Administrator
This is the way to initialize
a pointer to a function
void fun(int a)
{

}

void main()
{
void (*fp)(int);
fp=fun;
fp(1);

}
Submitted by: Administrator

Read Online C++ Programming Job Interview Questions And Answers