+ 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 "…"

30th Jan 2017, 6:58 AM
aziz
aziz - avatar
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.
30th Jan 2017, 7:55 AM
Arpan Lunawat
Arpan Lunawat - avatar