A very good introduction book to c & robotics with ATMEL microcontrollers is "C Programming for Microcontrollers" by Joe Pardue. Because there are some questions only related to microcontrollers and the microcontroller model you choose.
But I think it's better to learn C with a PC, it's easier and you can focus on the language.