The prototype of printf() is
and i typed printf(100) and it run successfully printing a string. How it happened why it doesn't show a type mismatched error.
Code:
printf(const char *__format, ...);
Comment