Hi guys, I am just curious, how can C flush standard streams like stdout when I simply return from main? I mean, to do that doesn't it have to manipulate buffers that are maintained by the standard library? How can it do it and keep the language separated from I/O? I'm implementing some functions from stdio as exercises of the last chapter of K&R2 but to make them work properly I have always to explicitly flush standard streams myself.
Thanks in advance.