For this, you need at least two things: a text editor (like notepad, edit, vi, whatever) and a c compiler. c programs are written as text files, but you can't execute your code without the compiler....
Compiler-dependent, it could be: TCC source, BCC source, or MSC source, or CL source, or GCC source, etc... (But of course you have to install a compiler first.)