Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!rutgers!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.lang.c Subject: Re: sizeof (integral types) Message-ID: <29127@apple.Apple.COM> Date: 17 Apr 89 17:54:01 GMT References: <12005@paris.ics.uci.edu> <10044@smoke.BRL.MIL> Organization: Apple Computer Inc, Cupertino, CA Lines: 21 In article <10044@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >In article <12005@paris.ics.uci.edu> Doug Schmidt writes: >>I realize the relation short <= int <= long holds, I'm just curious >>whether there is any minimum that these basic types must meet (e.g., >>short >= 16 bits, etc.). > >chars are at least 8 bits, >shorts are at least 16 bits, >longs are at least 32 bits. longs are guaranteed to be at least 24 bits (according to C++, sec 2.3.1) ----------------------------------------------------------------------------- | Glenn L. Austin | The nice thing about standards is that | | Apple Computer, Inc. | there are so many of them to choose from. | | Internet: austing@apple.com | -Andrew S. Tanenbaum | ----------------------------------------------------------------------------- | All opinions stated above are mine -- who else would want them? | -----------------------------------------------------------------------------