| 
 | |||||
| Bas de page | |
|---|---|
| Auteur | Sujet : difference entre int et long | 
|  Publicité | Posté le 28-08-2009 à 10:57:55     | 
| esox_ch | Vu que tu t'es toujours posée la question, t'as jamais pensé à chercher la réponse?   --------------- Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait | 
| Tazbisounours-codeur | sizeof(int) <= sizeof(long)
 | 
| ElmoricqModérateur | Et la norme n'aide pas beaucoup, elle dit juste que la taille minimum d'un int, c'est 4 bytes, et que la taille minimum d'un long, c'est 4 bytes aussi.  Message cité 1 fois Message édité par Elmoricq le 28-08-2009 à 13:04:16 | 
| masklinní dag viðrar vel til loftárása | 
 
 La norme C89 elle dit ça: 
 
 Il est fréquent que sur les archis 32b INT_MAX soit défini à la même valeur que LONG_MAX (et idem pour les mins), mais c'est une caractéristique de l'implémentation, en ANSI C tu peux pas compter dessus (à noter que depuis le C a gagné "long long", et sur les archis 64b tu te retrouves avec long et long long qui sont identiques, et int qui reste sur l'ancien long  Message édité par masklinn le 28-08-2009 à 13:27:50 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? | 
| sligor | sur les CPU embarqués 8b et 16b en général on prend 16b comme taille de int   de toute façon l'idéal pour être sûr de la taille de ses variables quelque soit la plateforme ce sont les type C99: Message cité 1 fois Message édité par sligor le 28-08-2009 à 14:53:55 | 
| masklinní dag viðrar vel til loftárása | 
 
 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? | 
| masklinní dag viðrar vel til loftárása | 
 
 char 8 bits, int 16 bits, long 32 bits  Message édité par masklinn le 28-08-2009 à 15:42:25 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? | 
|  Publicité | Posté le 28-08-2009 à 15:42:03     | 
| Un Programmeur | 
 
 --------------- The truth is rarely pure and never simple (Oscar Wilde) | 
| esox_ch | Merci  --------------- Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait | 
| Tazbisounours-codeur | 
 
 | 
| sligor | 
 
 | 
| Sve@r | 
 
 --------------- Vous ne pouvez pas apporter la prospérité au pauvre en la retirant au riche. | 
| masklinní dag viðrar vel til loftárása | 
 
 Mais oui, cette garantie fait que c'est un bon type pour les indices de tableaux. http://bytes.com/topic/c/answers/2 [...] post816012 Message édité par masklinn le 30-08-2009 à 13:23:22 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? | 



 
  


