« Programmation C/Types de base » : différence entre les versions

Contenu supprimé Contenu ajouté
Il faut conserver une cohérence entre les tableaux. Une note sur l'évolution des machines pourrait suffire à se prémunir du passé et futur. Annulation des modifications 595328 de 2A01:E35:8AE7:B4B0:9915:3347:38DC:4089 (discussion)
Balise : Annulation
→‎Représentation des entiers signés : Cohérence : la borne minimale commune à SVA/CPL1/CPL2 est -(2<sup>N</sup>-1) (SVA et CPL1 autorisant 2 représentations pour 0 en mode signé : +0 -0)
Ligne 36 :
| bgcolor="#F9F9F9" |<code>signed char</code>
| ≥ 8 bits
| style="background-color:#FFFFFF; text-align: right;" |-128127
| style="background-color:#FFFFFF; text-align: right;" |-(2<sup>7</sup>-1)
| style="background-color:#FFFFFF; text-align: right;" |+127
| style="background-color:#FFFFFF; text-align: right;" |2<sup>7</sup>-1
Ligne 50 :
| bgcolor="#F9F9F9" |<code>short</code>
| ≥ 16 bits
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:-3276832767}}
| style="background-color:#FFFFFF; text-align: right;" | -(2<sup>15</sup>-1)
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:+32767}}
| style="background-color:#FFFFFF; text-align: right;" |2<sup>15</sup>-1
Ligne 64 :
| bgcolor="#F9F9F9" |<code>int</code>
| ≥ 16 bits
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:-3276832767}}
| style="background-color:#FFFFFF; text-align: right;" | -(2<sup>15</sup>-1)
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:+32767}}
| style="background-color:#FFFFFF; text-align: right;" |2<sup>15</sup>-1
Ligne 79 :
| ≥ 32 bits
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:-2147483647}}
| style="background-color:#FFFFFF; text-align: right;" | -(2<sup>31</sup>-1)
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:+2147483647}}
| style="background-color:#FFFFFF; text-align: right;" |2<sup>31</sup>-1
Ligne 93 :
| ≥ 64 bits
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:-9223372036854775807}}
| style="background-color:#FFFFFF; text-align: right;" | -(2<sup>63</sup>-1)
| style="background-color:#FFFFFF; text-align: right;" |{{formatnum:+9223372036854775807}}
| style="background-color:#FFFFFF; text-align: right;" |2<sup>63</sup>-1