How do I loop through a va_list if the number of additional arguments is unknown?
#include #include int add(int x, int y, ...
Use a sentinel value as a terminator, e.g NULL or -1
NULL
-1