Variable number of arguments in C Functions

In C, Functions can accept a variable number of arguments. The functions printf() and scanf_s() are obvious examples. You may come up with a need to do this yourself from time to time.

The standard library stdarg.h header provides facilities for stepping through a list of arguments of unknown number and types.

Design a site like this with WordPress.com
Get started