read the book on C by kernighan and ritchi, undoubtedly the best book on C. You will also find solution to the programs in the a seprate book by tondo.