How Does C" Programming Language: Brian Kernighan - Computerphile Work?

"Brian Kernighan explains how the C programming language works, it’s like teaching a robot to follow step-by-step instructions using simple commands."

Imagine you have a robot that can do things like move, pick up toys, or count numbers. You want it to do a specific task, but you can only tell it one thing at a time, like "move forward" or "pick up the red ball." That’s kind of how C works.

In C, you write instructions for the computer using words and symbols, just like telling your robot what to do. Each instruction tells the computer to do something simple, add numbers, store information in a box (we call it a variable), or repeat actions over and over.

Like Giving Your Robot a Notebook

Think of C as giving your robot a notebook where you write down all its instructions. You use special symbols like + for adding numbers, = to put values into boxes, and {} to group related tasks together, just like how you might write directions in sections.

Brian Kernighan shows how these simple ideas can be used to make the robot do amazing things, like solving puzzles or playing games. It’s not magic; it’s just clear thinking with a little help from symbols and boxes."Brian Kernighan explains how the C programming language works, it’s like teaching a robot to follow step-by-step instructions using simple commands."

Imagine you have a robot that can do things like move, pick up toys, or count numbers. You want it to do a specific task, but you can only tell it one thing at a time, like "move forward" or "pick up the red ball." That’s kind of how C works.

In C, you write instructions for the computer using words and symbols, just like telling your robot what to do. Each instruction tells the computer to do something simple, add numbers, store information in a box (we call it a variable), or repeat actions over and over.

Take the quiz →

Examples

  1. A simple calculator program written in C
  2. How a computer runs a basic C program
  3. The difference between C and JavaScript

Ask a question

See also

Discussion

Recent activity