Job interview question: How to get variable arg count for C++ program with va_arg, va_start, and va_end

Job interview question: How to get variable arg count for C++ program with va_arg, va_start, and va_end Do it with with va_arg, va_start, and va_end /* va_start example */ #include #include void PrintFloats ( int amount, …) { int i; double val; printf (“Floats passed: “); va_list vl; va_start(vl,amount); for (i=0;i