http://en.wikibooks.org/wiki/Programming:C_contents is a good start. Especially about the bits, and initializing arrays question, along with the short answer questions.
For the sorting question, I recommend
http://en.wikipedia.org/wiki/Sorting_algorithm, but since you are a beginner the easiest to implement is BubbleSort (
http://en.wikipedia.org/wiki/Bubble_sort).
Come back when you have some concrete questions.