Thinking of printf() it has multiple parameters. The first is a string, the rest depend. But the number isn't certain. Can you do that in C?
Like create a function that has a varied number of arguments?
Thinking of printf() it has multiple parameters. The first is a string, the rest depend. But the number isn't certain. Can you do that in C?
Like create a function that has a varied number of arguments?
Yes. After all, isn't printf() part of the C standard library? Read the tutorial on Functions with variable-length argument lists.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)