Variable Arity in C?

后端 未结 4 934
借酒劲吻你
借酒劲吻你 2020-12-21 14:54

Does anyone knows how I might be able to implement variable arity for functions in C?

For example, a summing function:

Sum(1,2,3,4...); (Takes in a variable

4条回答
  •  执笔经年
    2020-12-21 15:34

    If you're trying to implement variable arity functions look at http://www.cprogramming.com/tutorial/lesson17.html for an introduction.

提交回复
热议问题