short = 2 Byte?
-
Mir war immer das hier bekannt:
char = 1 short <= int <= long
Red ich heut mit einem unserer C-Professoren und der meint, dass das zwar stimmt behauptet aber, dass nach C-Standard short = 2 Byte auch noch gilt. Stimmt das? Hat jemand den ANSI-C-Standard da liegen?
Wär wichtig, geht um ne Cola
MfG SideWinder
-
Ich hab dir mal die (imho) 2 relevanten Seiten rauskopiert: Seite 21 und Seite 22.
Der Satz auf Seite 21 ist (imho) recht eindeutig
Their implementation-defined values shall be equal or greater in magnitude (absolute value) to those shown, with the same sign.