This article was reviewed by Stan Kats and by wikiHow staff writer, Nicole Levine, MFA. Stan Kats is the COO and Chief Technologist for The STG IT Consulting Group in West Hollywood, California. Stan provides comprehensive technology & cybersecurity solutions to businesses through managed IT services, and for individuals through his consumer service business, Stan's Tech Garage. Stan has over 7 years of cybersecurity experience, holding senior positions in information security at General Motors, AIG, and Aramark over his career. Stan received a BA in International Relations from The University of Southern California.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 308,279 times.
If you've written or downloaded some C code on your Windows PC, you'll need to compile the code to turn it into an program you can run. This simple wikiHow tutorial will walk you through compiling and running a C program from the Windows command prompt using MinGW, an easy-to-install version of the GCC compiler.
Fair Use (screenshot)program is saved." width="460" height="345" />
Fair Use (screenshot)Use the cd command to go to the directory where your C program is saved. For example, if the program you want to compile is in C:\MyPrograms, type cd C:\MyPrograms and press Enter.
Fair Use (screenshot)the name of your new program and press ↵ Enter." width="460" height="346" />
Fair Use (screenshot)Type the name of your new program and press ↵ Enter . For example, if you created a program called hello.exe , you can type hello or hello.exe . This runs your C program from the command prompt. [5] X Research source
AdvertisementHow to Take a Screenshot on a Windows PC: 8 Simple Tricks
Check Your Windows Version5 Quick Ways to Change Your Desktop Wallpaper on Windows
How to Check Your Mouse DPI on Windows & Mac
How to Access the BIOS on Any PC: Guide + Troubleshooting
How to Find Your Windows Product Key
4 Easy Ways to Access the Boot Options Menu in Windows
Easily Download and Install FFmpeg on a Windows PC
How to Start Windows in Safe Mode: 6 Easy Options
How to Change the Windows Taskbar Position: 2 Easy Methods
Automatically Shut Down Your Computer at a Specified Time2 Ways to Turn Off S Mode on a Windows 11 PC
How Do You Hyperlink on Canva — A Quick Guide
3 Ways to Change a Computer's Mac Address in Windows