ProAnswers.org

In C function declaration what is meaning of '...' (three dots)?

I came across a function which has ‘…’ argument, what is meaning of it?

void func1(int val, …)

2 Likes

This means function accepts variable number of arguments.

This is called “variable argument list”, where the three dots ("…") can represent none, one or more arguments. It’s mostly used in C, as one tend to use function overloading instead in C++. The important C functions printf() and scanf() are example of variable argument lists being used.