Borland Turbo C was very good for this time (many happy memories of learning C with him a few years ago) - now it is freely available and can be downloaded here . I don't know how it compares with gcc for DOS, but it will come with an IDE if that helps ...
Edited to add ...
I saw that you updated that you are using XP, so you might want to take a look at Microsoft Visual C ++ Express instead of something a bit more relevant. I took you literally at your word when you said DOS, and thought you missed MS-DOS 6/5/4 / [, etc.] ...
Do not delay the C ++ bit; you should still be able to do most of the basic things with it C. Just remember to create the material as a console application.
source
share