This is the way to initialize a pointer to a function void fun(int a) {
void main()
{
void (*fp)(int);
fp=fun;
fp(i); }
void main()
{
void (*fp)(int);
fp=fun;
fp(i); }
03:40
AtoZ C++ Interview Questions, AtoZ CPP Objective Type Questions, AtoZ C++ Study Material
No comments
0 comments:
Post a Comment