Save the C program with certain name “a.c” Run this command on terminal
gcc a.c
The CLI will respond with any warnings or build message. It will generate a file with “.out” extension. Check using dir command for the new file
dir
For running the C file just enter the following command.
./filename.out
Xcode or GCC compiler should be installed before hand or need to be linked with the downloaded package so that terminal knows where to search for it.