What you need to do is understand every example and see what they do. Sometime reading the example first also helps. There are many tutorials which will help you understand what a code looks like. This will help you make fewer mistakes in your write ups. Also find the best C language Classes in your locality at https://www.urbanpro.com/c-software-classes-1?_r=offpage