Default Parameters in Pro*C ?????

Discussion in 'C' started by sivakumar.oracle, Aug 16, 2007.

  1. sivakumar.oracle

    sivakumar.oracle New Member

    Joined:
    Aug 16, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi Folks,

    I was stuck up with one small doubt on Function parameters in Pro*C
    file writting.

    int b = 3;
    main()
    {
    f(3);
    }

    f(a,b)
    {
    int a;
    ---
    --
    return --;
    }

    can i use default parameter 'b' in the called function,where calling the function from main() through single parameter,is this is possible in pro*c.

    Please i want immediate response.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    As far as I know C does not have the default parameter concept but its there in C++ but what you have written is wrong as far as C++ is also concern because you need to specify the default value when nothing is passed.
     

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