Steps to perform the task:
-
First, download and install the compiler.
-
Then, type the C/C++ program and save it.
-
Then, open the command line and change directory to the particular one where the source file is stored, using
cdlike so:cd C:\Documents and Settings\... -
Then, to compile, type in the command prompt:
gcc sourcefile_name.c -o outputfile.exe -
Finally, to run the code, type:
outputfile.exe