Best bet is to go on a programming course, or get tuition off someone you know. It's not easy to teach C in a forum like this. Failing both of those, you could try reading a C book; there is lots of choice.
i_s_a_a_c like this