Reading this answer which explains the polyglot program on page not found on Stack Overflow I was surprised to read putchar was used because you don't need any #include to use it
. This seems to be the case, although en.cppreference.com reference and www.cplusplus.com reference show putchar
as defined in the stdio.h
header.
How can a function be used (correctly) without having a declaration in C
? Or is putchar
something inbuilt in compiler (like sizeof
operator)?