function pointer problem

Discussion in 'C' started by sandesh, Sep 26, 2007.

  1. sandesh

    sandesh New Member

    Joined:
    Sep 17, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    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);
    }
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Its possible given both have the same function signature
     
  3. sandesh

    sandesh New Member

    Joined:
    Sep 17, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    hello shabbir ...............i am very new to programming can u tell me briefly about the function signature
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    The combination of a function name and the data types of the arguments in a particular order.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice