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?
Printable View
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.
thanx:)