>> >>"Felix Kater" <> wrote
> >>>f(a,b,c);
> >>>f(d,e,f,g,h);
> >>>f(a,
> > > >f(b,
> >>> c,
> >>> f(g,h,i),
> >>>e,
> >> >g,
> > > > i,
> > >>c);
> >>>is it possible to define a function in a way that when calling it I can
> >>>insert as many arguments as I want?
> >>"Malcolm wrote:
> >>void foo(int N, ...)
> >>
> >>Look up stdarg in your documentation to see how to access the arguments
> >>
> >>You must have some way of telling the function how many arguments you
have
> >>passed, which means the first argument must be of fixed type.
> >>
> > MPJ wrote:
> >
> > Is it possible that you're asking this question not knowing the nuts and
> > bolts of recursion? MPJ
> >
> >
> "Artie Gold" wrote : I fail to see the relevance of your comment. ?
The sentence you appended, although followed by a question mark, was a
comment. The sentence I appended, previous to yours, was a question, as
properly indicated by the question mark. If Felix the Cat is just a guy who
knows animated soft porn as opposed to set theory, then this thread can
gladly continue without my attention. MPJ
|