The file stdout
, which is what printf
writes to, is by default line buffered. That means everything you write to it is buffered, i.e. stored in memory, and is flushed (and actually printed) when you print a newline.
2
solved C char array storing a variable [closed]