+ 7

Is it possible to declair a function which will take varible no. of arguments...if possible then how?

For C or C++

28th Mar 2018, 1:43 PM
PRITAM CHAKRABORTY
PRITAM CHAKRABORTY - avatar
2 odpowiedzi
+ 4
use Variadic functions like this: https://code.sololearn.com/cCat34Gx4I1d/?ref=app
28th Mar 2018, 2:09 PM
🇮🇷 M N
+ 7
Yes, these are called "variadic functions". They take any number of arguments. See example: https://gobyexample.com/variadic-functions
28th Mar 2018, 1:53 PM
Bill Zelenko
Bill Zelenko - avatar