How to Compile and Run C program in Terminal?

To compile and run the C programs efficiently users often use a compiler or system in-build terminal. In that case, the well-known system terminal called CMD or command prompt can also be used to process the C programs with required outputs. To create an executable C program on the Windows system configuration, users must compile any code in the C programming language they have made or obtained to compile and run in the system terminal.

In this article, we’ll explore how to compile and run a C program from the Windows command prompt using the MinGW system environment, an easy-to-install version of the GCC compiler to execute correctly.

Table of Content