C++ code file extension? What is the difference between .cc and .cpp [closed]

I have seen C++ code saved as both .cc and .cpp files. Is there a difference between the two?

The Google style guide seems to suggest .cc, but provides no explanation.

I am mainly concerned with programs on Linux systems.

17 s
17

At the end of the day it doesn’t matter because C++ compilers can deal with the files in either format. If it’s a real issue within your team, flip a coin and move on to the actual work.

Leave a Comment