Max Function Arguments

Discussion in 'C' started by kanaks_go4ex, Aug 24, 2008.

  1. kanaks_go4ex

    kanaks_go4ex New Member

    Joined:
    Jun 11, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    hi every1,

    What is the maximum limit for passing arguments to a function ?

    -thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,341
    Likes Received:
    378
    Trophy Points:
    83
    Till Stack overflows
     
  3. oogabooga

    oogabooga New Member

    Joined:
    Jan 9, 2008
    Messages:
    115
    Likes Received:
    11
    Trophy Points:
    0
    The practical limit is common sense. If you have a huge number of arguments to pass, it is best to gather them in a structure or object and pass a single pointer. I can't imagine a function that would need, say, a hundred arguments. That would probably be indicative of a badly designed program.
     

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