.c
💻 CodeText-based

.c File — C Source Code

text/x-csrc

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

C

Drop a .c file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/x-csrc

Quick Facts

Extension.c
Full NameC Source Code
MIME Typetext/x-csrc
CategoryCode
TypeText-based (human-readable)
Typical Size1 KB – 100 KB
First Appeared1972

What Is a .c File?

C is one of the most influential programming languages in computing history, developed by Dennis Ritchie at Bell Labs between 1969 and 1973. C files contain source code in this compiled, statically-typed, procedural language that provides low-level access to memory through pointers while maintaining enough abstraction for structured programming. C is the language of operating systems — Linux, Windows, macOS, and virtually all Unix variants are written primarily in C. The language is also used for embedded systems, device drivers, databases (PostgreSQL, SQLite, Redis), interpreters (CPython, Ruby MRI), compilers, and performance-critical applications. C provides direct control over hardware, manual memory management, and minimal runtime overhead, making it essential wherever performance and resource efficiency are paramount. The C standard has evolved through C89/C90, C99, C11, C17, and C23, each adding features while maintaining backward compatibility. C's influence is enormous — it directly inspired C++, Objective-C, C#, Java, JavaScript, Go, Rust, and many other languages. Understanding C provides foundational knowledge of how computers actually work at the systems level.

How to Open .c Files

VS Code
CLion
vim
Emacs
Code::Blocks
any text editor
gcc/clang (compilation)

Related File Extensions

More Code File Extensions

Other code formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.