How does the global printf() know where to send the output?

This should be helpful.