+ 7
Is it possible to declair a function which will take varible no. of arguments...if possible then how?
For C or C++
2 odpowiedzi
+ 4
use Variadic functions like this:
https://code.sololearn.com/cCat34Gx4I1d/?ref=app
+ 7
Yes, these are called "variadic functions". They take any number of arguments. See example:
https://gobyexample.com/variadic-functions