Sign in Join
Wiki copytemporary

Int16/fr

Deutsch · English · Français

Plage de valeurs : -32768 .. 32767
Occupation en mémoire : 2 octets soit 16 Bits
Propriétés:
Un champ de donnée de type de donnée Int16 ne prend 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 tableau de type Int16:

pascal
 Var 
   i16: int16;

Exemples d'affectations avec des valeurs valides :

pascal
   i16 := -32768;
   i16 := 0;
   i16 := 32767;

Exemples d'affectations avec des valeurs invalides :

pascal
   i16 := '-32768';
   i16 := '0';
   i16 := '32767';

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


From the Free Pascal wiki, page "Int16/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 2, last changed by WikiArchive .

Talk about this page

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