Multiple choice

What header file should be included if you are to develop a function that can accept variable no. of arguments?

  1. vararg.h

  2. stdlib.h

  3. stdio.h

  4. stdarg.h

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The stdarg.h header file provides the macros (va_list, va_start, va_arg, va_end) necessary to handle functions with a variable number of arguments.