Gcc

GCC

GCC Compilation

Save the C program with certain name “a.c” Run this command on terminal

Build Process

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

Run Process

For running the C file just enter the following command.

./filename.out

Note

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.