40. nullptr

Question.1

A UART logger has two overloads:

void log(int code)    { printf("CODE:%d", code); }
void log(const char *msg)   { printf("MSG:%s", msg); }

log(NULL);
log(nullptr);

What happens?

Need Help? Refer to the Quick Guide below

Select Answer