How to Compile a C or C++ File

Compiling a C / C++ file requires the use of Windows Command Prompt (Windows), Terminal/Shell (Mac & Unix), or an IDE.

NOTE: The following steps are for compiling a C / C++ program in a Unix Terminal session.