Variable number of parameters in function in C++
These are called Variadic functions. Wikipedia lists example code for C++. To portably implement variadic functions in the C programming language, the standard stdarg.h header file should be used. The older varargs.h header has been deprecated in favor of stdarg.h. In C++, the header file cstdarg should be used. To create a variadic function, an … Read more