Exercises and examples from The C Programming Language by Brian Kernighan and Dennis Ritchie.
To compile a file such as hello.c
:
gcc hello.c -o hello
The gcc command stands for "GNU C compiler" and the -o option specifies the name of the executable file which will be created.