I have a variadic function:
void some_func(
char arg1,
int arg2,
char arg3,
char arg4,
int arg5,
char arg6, ...
)
{
/* Do some stuff */
}
Can I have function calls like the below:
some_func('a', 23, 'c', 'd', 56, 'y', "yahoo"); /* yahoo is extra, but valid */some_func('a', 23, 'c', 'd', 56, 'y'); /* Nothing extra passed, only 6 args, is this allowed??? */
My concern is point2. Can we not have the extra arguments in the call if the function is variadic?