Skip to main content
SWStudyWalks Search

Computer Science / Unit 7   CS 0362 short lesson, about 20 seconds

The Variable as Name-Value Pair

Captions available

The idea

A variable is a container holding a value — a name-value pair, with primitive types storing the actual value directly at the named memory location.

In practice

A balance named in a ledger app is one name bound to one stored number.

Where people slip

The direct-storage picture holds for primitives only.

Your place on the trail

Every lesson rests on earlier ones and opens later ones. Tap any to jump.

Something wrong in this lesson? Flag it  ·  Sources for Computer Science