Get this enviroment from blodshed is free.it supports C and C++ .it has a debugger and you can create console and windows apps..\ https://www.bloodshed.net/devcpp.html
I will leave it to others to point out generic C compilers, but I should mention that Microsoft provides a free version of Visual C# here https://www.microsoft.com/express/vcsharp/