Language

C

First appeared
1972
Paradigm
Imperative, procedural
Toolchain
GCC 14.2
Container image
debian:trixie-20261027-slim + gcc-14 14.2.0-19

C came out of Bell Labs in 1972, written to build the Unix operating system, and most of computing still rests on it: Python, R, PostgreSQL, and the core of NumPy are all written largely in C. Here it is compiled with GCC using the C17 standard, with every warning turned into an error.

Its standard library is small. It has sqrt, log, and exp, qsort for sorting, and printf for output, but no growable arrays, no hash tables, no CSV reader, and no string type beyond an array of characters. So the implementations do their own bookkeeping: they grow arrays with realloc, split lines with strtok, and release memory with free, because nothing does it for you.

Quirks

Concepts in C

Run the examples locally

You need Docker and Python 3. The harness builds the pinned container and runs every C example:

git clone https://github.com/qnixon/dswithx.git
cd dswithx
python3 harness/run_tests.py --language c