1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Default Parameters in Pro*C ?????

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

  1. sivakumar.oracle

    sivakumar.oracle New Member

    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

    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