< C
#include <stdio.h> #include <stdarg.h> 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); printf("a: %d\n", a); printf("b: %d\n", b); printf("c: %d\n", c); } main() { fg(8,5,9); }