.cc C++ source code

Text & source code

MIME typetext/x-c++src
DescriptionC++ source code
CategoryText & source code
Based ontext/x-csrc
Other extensions.c, .c++, .cpp, .cxx

Frequently asked questions

What is a .cc file?

A .cc file is a “C++ source code” (MIME type text/x-c++src).

How do I open a .cc file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .cc file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.cc shows the guessed type.

Which format is .cc based on?

Technically a .cc file is a subtype of “C source code” (text/x-csrc), so programs for that base format can often read it too.

Which MIME type belongs to .cc?

The MIME type is text/x-c++src. In the Apache web server: AddType text/x-c++src .cc; in nginx: types { text/x-c++src cc; }.

Nearby entries