Skip to content

C basics: main, printf, and functions

C is a compiled language

  • C is one of the oldest and most important languages. Linux, databases, and even Python are built with C.
  • Unlike Python, C is compiled: the computer first turns your code into a program, then runs it.
  • C is strict: declarations and expression statements end with a semicolon ;, and every variable has a type. A block such as if (...) { ... } does not need an extra semicolon.

hello.c goes through the compiler to become a program, which is then run

Handout

Log in or create account

IGCSE, A-Level & AP