If you're asking this, you're already doing it wrong.
Step 1) Buy a book. The C Programming Language from the Prentice Hall Software Series by Brian W. Kernighan and Dennis M. Ritchie, for example.
Step 2) READ THE BOOK from start to finish. The book that I mentioned has exercises in pretty much every little section. If you really care about programming, it will take you a good bit to finish the book, because you will have done the exercises.
DON'T GOOGLE THE DAMN ANSWERS (or examples of them).