Path: utzoo!utgpu!attcan!uunet!husc6!cmcl2!rutgers!ucsd!ucbvax!hplabs!hp-sdd!ncr-sd!se-sd!ewing From: ewing@se-sd.sandiego.ncr.com (David Ewing) Newsgroups: comp.lang.c Subject: Re: Absolute size of 'short' Keywords: unsigned wrap-around Message-ID: <1600@se-sd.sandiego.ncr.com> Date: 4 Aug 88 19:43:35 GMT References: <214@ISIDAPS5.UUCP> Reply-To: ewing@se-sd.sandiego.NCR.COM (David Ewing) Organization: NCR Corp. Systems Engineering, San Diego Lines: 18 In article <214@ISIDAPS5.UUCP> mike@ISIDAPS5.UUCP (Mike Maloney) writes: >Dear C-Heavies, > >Is the size of a (signed or unsigned) short integer guarenteed to >be two bytes? No, the only guarantees are short is less than OR EQUAL TO int which is less than OR EQUAL to long. For example, on the 32-bit machine where I work: long = 32 bits (signed or unsigned). int = 32 bits ( " ). short = 16 bits ( " ). David A. Ewing NCR -- Systems Engineering, San Diego