i have done this
Code:
#include <iostream.h>
void *a[20];
int adunare(){cout<<"AsdA";
return 5;};
void main()
{
a[0]=adunare;
cout <<a[0];
a[0]();
cin>>int();
}
i am trying to make an array of pointers to functions
which is in this case a.
i am trying to call a[0] which is actually adunare
by calling a[0] like this : a[0]();
why is it not working and how should it have been done ?