Sign in Join
Wiki copytemporary

Int8/fr

Deutsch · English · Français

Plage de valeurs: -128 .. 127.
Occupation en mémoire: 1 octet soit 8 bits.
Propriétés:
Un champ de donnée de type de donnée Int8 ne peut prendre que des valeurs entières signées de sa plage de valeurs.
Tout autre valeur conduit à une erreur de compilation, le programme ne sera donc pas créé.
Définition d'un champ de donnée de type Int8:

pascal
 Var 
   i8: int8;

Exemples d'affectation de valeur correcte :

pascal
   i8 := -128;
   i8 := 0;
   i8 := 127;

Exemples d'affectation de valeur incorrecte :

pascal
   i8 := '-128';
   i8 := '0';
   i8 := '127';

Ces dernières instructions tentent d'affecter directement des valeurs de type String, ce que le compilateur refusera.\


From the Free Pascal wiki, page "Int8/fr", as it stood on 2020-02-18 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.