1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Default Parameters in C ?????

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

Thread Status:
Not open for further replies.
  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,293
    Likes Received:
    365
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page