I read how this could be done before. But I could not
remember where.
I read how this could be done before. But I could not
remember where.
Search your reference for stdarg.h.
My best code is written with the delete key.
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.
My best code is written with the delete key.
I went through more than a few books for this question before.
I never need it in practice. Only met it in interview.
couldnt you just use NULL as a parameter you dont need?
NULL will only work with pointers parameters.Originally Posted by sand_man
Emmanuel Delahaye
"C is a sharp tool"