How can a called function determine the number of arguments that have been passed to it?
How can a called function determine the number of arguments that have been passed to it?
Via the va macros(), as your other topic is about, as you already said. Keep reading them until you've hit NULL.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.