P
Phil Carmody
rio said:for the printf(fmt, ...)
from fmt printf know how many argument it should have
Should's are worthless. It does not know how many arguments
it *does* have.
Phil
rio said:for the printf(fmt, ...)
from fmt printf know how many argument it should have
>
> for the printf(fmt, ...)
> from fmt printf know how many argument it should have
Dik T. Winter said:.... snip ...
Yes, it does know how many it *should* have, it does not know how
many it *does* have. (Although Han kindly informed me that there
are systems where printf also does know that. I should have known
because I have used systems where a routine could detect the
number of arguments supplied, but that is outside the standard.)
CBFalconer said:Han is wrong. Any such system is not C, in that you cannot count
on the facility existing.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.