Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   function pointer problem (http://www.go4expert.com/forums/function-pointer-problem-t6545/)

sandesh 26Sep2007 14:15

function pointer problem
 
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 26Sep2007 19:04

Re: function pointer problem
 
Its possible given both have the same function signature

sandesh 27Sep2007 17:43

Re: function pointer problem
 
hello shabbir ...............i am very new to programming can u tell me briefly about the function signature

shabbir 27Sep2007 17:52

Re: function pointer problem
 
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.


All times are GMT +5.5. The time now is 12:07.