cc, gcc and g++

cc and gcc can be used interchangeably.

cc is the c compiler, and gcc stands for Gnu Compiler Collection

cc is fine for compiling C programs but will not do for compiling C++ code

if I do a dpkg -l g++:

eamoc@knut:~$ dpkg -l gcc | grep compiler
ii  gcc                                         4:4.8.2-1ubuntu6                      amd64        GNU C compiler
eamoc@knut:~$ dpkg -l g++ | grep compiler
ii  g++                                         4:4.8.2-1ubuntu6                      amd64        GNU C++ compiler
eamoc@knut:~$