Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Sign extension » ?

Definition 6.11 University Computer Science — Year 1 · Chapitre 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.

Lire dans le chapitre →