function pointer problem

sandesh's Avatar, Join Date: Sep 2007
Newbie Member
Hello.......
In the given code I want to use only one function pointer which can call two different type of function .............is it possible ................if yes then how ???


main()
{
// ( )(* fun_point)( );
int fun1(int,int);
char fun2(char,char);
}
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Its possible given both have the same function signature
sandesh's Avatar, Join Date: Sep 2007
Newbie Member
hello shabbir ...............i am very new to programming can u tell me briefly about the function signature
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by sandesh
hello shabbir ...............i am very new to programming can u tell me briefly about the function signature
The combination of a function name and the data types of the arguments in a particular order.