#include <iostrem> #include <cstdarg> using namespace std; void fg(int a, ...) { int b = 0, c = 0; va_list m; va_start(ma,a); b = va_arg(m, int); c = va_arg(m, int); va_end(m); cout << "a: " << a << endl; cout << "b: " << b << endl; cout << "c: " << c << endl; } main() { fg(8,5,9); }