This is a good standard textbook to learn C. It covers all the core topics that we touch upon in ECE15. Since this is a standard textbook, keep in mind that it may delve into additional details or cover extra topics that go beyond the scope of our one quarter course.
Programming in C, 4th Edition
Stephen G. Kochan
ISBN: 0672326663
We have created dedicated reading chapters for ECE15, which you can access below. They are the entire reading for the class and cover all the material that is covered during the quarter.
If you know all the material in these chapters, you also know everything you need for the waiver exam. You will notice that these chapters introduce concepts in a different order compared to standard textbooks, in a way that is specifically targeted towards students with little prior exposure to programming. To this end, it starts with "Karel the Robot" to learn how to think as a programmer first, before moving on to pure C. For the ECE15 waiver exam, there will not be any questions specifically on Karel the Robot, so you don't need to memorize the Karel syntax.