🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #6056

Re: short vs. long

#6056
From: Doug Gwyn
Date: Mon, 22 May 1989 11:30
9 lines
917 bytes
In article <11763@well.UUCP> markg@well.UUCP (Mark Grand) writes:
>The current draft of the standard does not require that the sizeof short is
>less than or equal to the sizeof int; nor that sizeof int is less than or
>equal to sizeof long.

Sure it does.  "In the list of signed integer types above, the range of
values of each type is a subrange of the values of the next type in the
list."  This requirement can be combined with other constraints on the
behavior of integers to deduce the relations between their sizeof sizes.
Technical Details
Message-ID: <10303@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn
References: <11763@well.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: short vs. long
Message-ID: <10303@smoke.BRL.MIL>
Date: 22 May 89 11:30:20 GMT
References: <11763@well.UUCP>
Reply-To: gwyn@brl.arpa (Doug Gwyn)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 9