I read how this could be done before. But I could not
remember where.
Printable View
I read how this could be done before. But I could not
remember where.
Search your reference for stdarg.h.
doesn't mention this?
>How come most C books doesn't mention this?
You have been reading the wrong books. Beginner books gloss over topics of an advanced nature, and this is one of those topics. Of course, functions with a variable number of arguments aren't nearly as useful as some would lead you to believe, so they are left out of many texts for that reason as well.
I went through more than a few books for this question before.
I never need it in practice. Only met it in interview. :mad:
couldnt you just use NULL as a parameter you dont need?
NULL will only work with pointers parameters.Quote:
Originally Posted by sand_man