views:

1095

answers:

7

Tutorials are a dime a dozen, but I'd like to find a list of exercises online that I could attempt to practice what I'm learning. The sort of things that start with "Write a program to..."

I'm an absolute beginner, so basic exercises increasing in difficulty would be great.

+11  A: 

G'day,

Go straight to the original K&R book on C (sanitised Amazon link).

BTW I'm actually revisiting my C by working through this book in conjunction with The C Answer Book (sanitised Amazon link) atm

HTH

cheers,

Rob Wells
+14  A: 

Project Euler

David Johnstone
+1  A: 

https://hs.spoj.pl/ is a good site for some rather difficult programs

France IOI is a site meant for the french IOI team(therefore in French) with a section on learning C(also one on learning oCaml for courageous people). The great part about the site, though, is the algorithms section, is extremely well developed.

Of course there's Project Euler.

Dasuraga
+1  A: 

I would recommend to buy a good beginners book to start with that language.

nulldevice
And the best C book, for any level programmer, is The C Programming Language, as mentioned by Rob Wells.
Thomas Owens
+2  A: 

CodeKata has lots of exercises, but they're language agnostic.

Patrick Cuff
+2  A: 

You may be interested in checking out Foundations of Computer Science (C Edition) by Alfred Aho and and Jeffrey Ullman. The link provides you with legal access to the entire book. It contains plenty of exercises related to the implementation of the "classic" data-structures in C. If you are familiar with these data-structures and algorithms in another language, then this book will at least help translate what you already know to C. If you aren't familiar with them, then this book will teach you the building blocks needed to construct large programs (in C, of course :-).

Anthony Cuozzo
+2  A: 

You can give a try to TopCoder, there you can practice with a lot of problems (dificulties varies), and also the guys from the forum can help you to get over certain kind of problems (by identifiying patterns).

Eliseo Ocampos