Sign in

C programming language

1972Big moment

A language that underlies operating systems and much of modern software.

The story

C is a programming language created by Dennis Ritchie at Bell Labs around 1972 and 1973. It lets a programmer write instructions in readable form while keeping close control of the machine, such as direct handling of memory addresses through 'pointers.' Its compiler turns the code into fast machine instructions, and the same program can be recompiled for a different type of computer with few changes. This mix of speed, control and portability made it the language in which the world's operating systems came to be written.

C grew out of a practical problem in the Unix project. Ken Thompson had written the first Unix in assembly language, which was tied to one machine, and he then built a small language called B, itself a descendant of Martin Richards' BCPL from 1967. B treated all data as machine words, which suited the old PDP-7 but not the newer PDP-11, whose memory is organized in bytes and which supports different types of numbers. Ritchie added data types, structures and other features, producing 'New B' and then C. In 1973 the Unix kernel was rewritten in C, which proved that an operating system did not need to be written in assembly.

The 1978 book The C Programming Language, by Brian Kernighan and Ritchie, became the standard introduction and popularized the 'hello, world' first program. A formal standard followed in 1989 from ANSI, and in 1990 from the International Organization for Standardization. C's design shaped later languages, including C++, Objective-C, Java, C# and Go. The Linux kernel and large parts of Windows and macOS are written largely in C, and so are databases and the main implementations of languages like Python. It also has well-known risks, because manual memory management can lead to security bugs, which is one reason newer languages such as Rust were designed.

Why it mattered

  • Unix's move to C made operating systems portable across hardware, and Linux later followed the same model.
  • C++ and Objective-C extended it, and Java, C# and many other languages borrowed its syntax.
  • The Linux kernel, written in C, runs most of the world's servers, supercomputers and Android phones.
  • Programming education spread through The C Programming Language, whose 'hello, world' became a ritual first program.
  • Its memory-safety pitfalls later motivated safer systems languages such as Rust.

Drafted by AI (Claude) from the sources above and checked against them by AI; no historian has reviewed this page. Spot a mistake? Suggest a correction. How pages are made

Community notes

Loading notes…

Learn more ranked by votes

BookBrian W. Kernighan and Dennis M. Ritchie
The C Programming Language
Search Open Library
VideoSearch YouTube
history of the C programming language
Search YouTube