hi,
I wanted to have function which will accept as
foo(...)
{
//......
}
usage of this would be
foo(1,2,3);
foo(1)
foo(1,2,3,4,5,5,6);
va_list
can be used but again for that I have to pass foo(int count, ...)
, as this at run time i dont know how many argument i have.
any pointer would be appreciated
Thanks