Question: how to do stdout in c?
Answer: Is there an example in C of the command to write to stdout? ... 
printf by default writes on stdout , if you want to write to a specific stream you should use fprintf which accepts a FILE* as the destination stream. – ... 
Also it's "std" out because it's called "standard" output.