+ 2
int sum(int a,…) what it means "…" ? How i can call to this function ?
i try to compile this code and it doesn't find error please tell to me what it means "…"
1 Resposta
+ 2
The "..." means Var Arg (Variable Argument) it means that the function could take variable number of arguments.
now, this function sum(int a,…)
will need at least one argument of int type and you can pass more arguments as well if it is required.