I think that when you reach a certain level of experience you know what to do and what not to do.
So in a beginners point of view i think this is a good example, and the main point that i see is
1. Write one line
2. Compile
3. Fix error(s)
4. Write another line
Instead of copy - paste 200 lines and then wonder why nothing is working..
Also i suggest anyone to maybe start with more highlevel languages such as PHP (which has similar syntax and function-names as C), just to get the big picture.