How to make a variadic macro (variable number of arguments) October 11, 2022 by Tarik C99 way, also supported by VC++ compiler. #define FOO(fmt, ...) printf(fmt, ##__VA_ARGS__)