r/learnc • u/Maurice-Actual • Oct 30 '25
How do I run programs in C
Hey everyone, I'm currently at the start of the C Bible and I'm having trouble running the program from the first exercise. I'm using VSCode right now but I'm open to suggestions if there's a better way to do this. Thanks for any and all advice.
2
Upvotes
View all comments
Show parent comment
1
u/thisisleobro Oct 30 '25
I am also a begginer. I personally use Mingw.
Intall with:
winget install MartinStorsjo.LLVM-MinGW.UCRTThen you can run using gcc. For a simple c file called main.c use:
gcc -o EXECUTABLENAME main.cFor more complex examples look up gcc