Ellipsis ('...')

Previous Punctuators Next

An ellipsis ('...') consists of three successive periods with no whitespace intervening. You can use an ellipsis in the formal argument lists of function prototypes to indicate a variable number of arguments, or arguments with varying types. For example,

void func (int n, char ch, ...);
This declaration indicates that func will be defined in such a way that calls must have at least two arguments, an int and a char, but can also have any number of additional arguments.

Note: The GNU C extends the usage of ellipsis for making case ranges and for labeling elements in initializers.