What Is a Program?
Instructions for a computer — and why we start with C.
3 minute read
Big idea
A program is a list of instructions that a computer follows, one step at a time.
The idea
A computer can't think. It can only follow instructions — very fast and very exactly. Writing a program means writing those instructions down.
You write them in a programming language like C, because it's readable for humans. But the computer's brain, the CPU, only understands machine code — just numbers. So a tool called a compiler translates your C into machine code. Then the computer can run it.
Example
Your C code → Compiler → Program → Run it!
(text you write) (translator) (machine code)
Watch it
Think of it like
A recipe written in English for a chef who only speaks French. You write the recipe (your code), a translator converts it (the compiler), and then the chef can cook it (the computer runs it).
🕷️ Spidey-sense: Your friendly neighbourhood tutor here. A program is like my web-fluid recipe: exact steps, in exact order. The computer follows them perfectly — even the wrong ones. So when something breaks, check the recipe, not the computer.
Why start with C?
C is small and close to how the computer really works. Learn it once and every other language — C++, Java, Python — feels easier, because most of them borrowed their ideas from C.
Key terms
- Program — A list of instructions for the computer.
- CPU — The part of the computer that runs instructions.
- Compiler — Translates your C code into machine code the CPU understands.
Check yourself
What is a program?
Why can't the computer run your C code directly?
What does a compiler do?