We'll be using GCC for our Programs on Mac.

For OSX Mavericks and onwards:

Open a terminal and paste this line:

xcode-select --install

This should give you a pop up. 

Click Install.

Wait for it to install.

That's it!