What is the output of the following program, compiled as C23?
#include <stdio.h>
#define TAG(name, ...) printf("<" name __VA_OPT__(" class='%s'") ">\n" __VA_OPT__(,) __VA_ARGS__)
int main(void) {
TAG("p");
TAG("div", "card");
return 0;
}
__VA_OPT__(x) expands to x only when variable arguments are present, so the first call gets neither the class text nor the comma.