Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Sign extension?

Definition 6.11 University Computer Science — Year 1 · Hoofdstuk 6 — Strings, Structures and Files

Sign extension is the widening of a signed integer to more bits by copying its sign bit into all the new high bits, which keeps its value in two’s complement: the byte f0 read as a signed char (−16-16) becomes fffffff0, still −16-16. An unsigned value is widened by zeros instead.

Lees in het hoofdstuk →