"Keith Thompson" <ks***@mib.org> wrote
Thanks,
I undrstand now, the all is
in fact htat first(or argument
in which we give format) is
a linked list...
No, the format string in a printf() call is not a linked list.
I don't think Bore's first language is English.
When you pass a variable number of arguments to a function, it needs to have
some way of knowing how many arguments were passed.
In the printf() family of functions this is achieved by passing a format
string as the first parameter. Each type (introduced by a % sign) matches an
arguement.
However you cna write your own varidic functions. You could pass in an
integer as the first arguement giving the number of arguments, or you could
even pass in an elaborate structure (like a tree or a linked list) which
the function parses to find the number of arguments.