Skip to main content
SWStudyWalks Search

Computer Science / Unit 5   CS 0238 short lesson, about 20 seconds

Bits Need a Declared Type

Captions available

The idea

A series of bits has no meaning by itself — reading it requires knowing the declared type, because the same string decodes differently as an unsigned or a signed integer.

In practice

One four-bit string answers to several different numbers depending on the reading rules attached.

Where people slip

The type travels with the data or the data is noise.

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