For writing C programs, you can use online compiler: http://cmpe150-1.cmpe.boun.edu.tr/
You can also use Microsoft Visual Studio 2005 C++ express edition which is distributed freely by Microsoft. You can download the cd image from:
http://go.microsoft.com/fwlink/?linkid=57034. You can also buy the CD from Arenay Computer