Computer Science / Unit 7 CS 0357 short lesson, about 20 seconds
Pascal and C, the Block Builders
Captions available
The idea
Pascal and C, invented at approximately the same time, distinguished themselves as both procedural and imperative — grouping statements into blocks, with variables defined within a block's scope.
In practice
A program reading as nested rooms, each with its own local furniture, is their legacy everywhere.
Where people slip
Block scoping is the inheritance modern languages carry.
Your place on the trail
Every lesson rests on earlier ones and opens later ones. Tap any to jump.
Unlocks
Something wrong in this lesson? Flag it · Sources for Computer Science