.C File Extension

2 file types use the .c file extension.

C/C++ Source Code File

Developer ANSI/ISO
Popularity
4.1  |  241 Votes
 

What is a C file?

A C file is a source code file for a C or C++ program. It may include an entire program's source code or may be one of many source files referenced within a programming project. Users can edit C files with source code and plain text editors, then compile them with a C/C++ compiler for the target platform before the code can be run.

More Information

Screenshot of a .c file in Microsoft Visual Studio Code 1.33
C file open in Microsoft Visual Studio Code 1.33

Dennis Ritchie originally developed the C programming language to create Unix utilities in Bell Labs in the late 1960s and early 1970s. Since the 1970s, the popularity of C has grown, and many users have learned and used the language to develop operating systems, database management systems, games, and more. In addition, the American National Standards Institute (ANSI) and the International Organization for Standardization (ISO) have also standardized the C programming language since 1989.

The language has also influenced many programming languages, including C++, PHP, Perl, Python, Java, and JavaScript. For example, C++ is an extension of the C programming language and was released in the mid-1980s. Developers use the language to create many of today's software programs. The C++ language may be stored in C, .CC, .CPP, .CXX, and C++ source code files.

💡 Some Unix compilers use a lowercase .c extension for C and an uppercase .C extension for C++, although this convention is not common.

Common C Filenames

main.c - A source code file typically containing the main() function, or entry point, for a C program.

How to open a C file

You can open and edit C files with various source code editors, including Microsoft Visual Studio Code (multiplatform), Code Blocks (multiplatform), and Apple Xcode (macOS). These applications offer helpful features, such as syntax highlighting and auto-completion for viewing and editing C/C++ code.

You can also open and edit CPP files with a plain text editor, such as Microsoft Notepad (bundled with Windows) or Apple TextEdit (bundled with macOS). However, these text editors do not provide helpful source code editing features.

C/C++ compilers

You can compile the C/C++ code stored in C files to code that can be run on a computer with various free and commercial compilers. Some compilers include Microsoft Visual Studio (Windows), GNU Compiler Collection (multiplatform), Eclipse IDE for C Developers (multiplatform), and Apple Xcode (macOS).

Open and view .C files with File Viewer Plus.Free Download

Programs that open C files

Lite-C Script

Developer Conitec Datasystems
Popularity
2.9  |  28 Votes
 

Script written in lite-C, a programming language designed for easily developing graphics and virtual reality applications; uses a syntax similar to C/C++ and is compiled on-the-fly by lite-C.

More Information

Lite-C includes an ABT (Adaptive Binary Tree) rendering engine, programmable particle effects, a body physics and collision engine, and play functions for sound, music, and movie files.

Programs that open C files

Windows
Conitec Datasystems lite-C
Conitec Datasystems Gamestudio

Verified by FileInfo.com

The FileInfo.com team has independently researched all file formats and software programs listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.