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(i); }

0 comments:

Post a Comment

Blogger news