Comma omitted in variadic function declaration in C++
问题 I am used to declaring variadic functions like this: int f(int n, ...); When reading The C++ Programming Language I found that the declarations in the book omit the comma: int f(int n...); // the comma has been omitted It seems like this syntax is C++ specific as I get this error when I try to compile it using a C compiler: test.c:1:12: error: expected ‘;’, ‘,’ or ‘)’ before ‘...’ token int f(int n...); Is there any difference between writing int f(int n, ...) and int f(int n... )? Why was