Tutorial on how to write C program, in MAC (macOS Sierra), compile & run using terminal.
Those terminal command also applicable for most of the common used linux distributions.
I have used GCC compiler through terminal, and Atom text editor for writing c source code.
GCC:
Atom Text Editor:
Источник: rutube.ru