Xref: utzoo comp.sys.mac.programmer:16676 comp.sys.apple2:4562 Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.sys.mac.programmer,comp.sys.apple2 Subject: Re: Q: MPW IIGS C 1.0.1 type sizes Keywords: C, MPW, GS Message-ID: <13539@smoke.BRL.MIL> Date: 12 Aug 90 19:10:08 GMT References: <734@dg.dg.com> <43828@apple.Apple.COM> <756@dg.dg.com> Followup-To: comp.sys.mac.programmer Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 19 In article <756@dg.dg.com> bkahn@archive.rtp.dg.com (Bruce Kahn) writes: >... what I was more interested in and didnt ask about too clearly was >the range of values that each type can have and whether or not the >default for that type is signed or unsigned. The signedness is defined by the C language, except for type "char" where the implementation gets to choose. What I don't understand is why you would possibly care about this. If you need an unsigned type, use an unsigned type.. All the integers are twos-complement representations, so knowing the number of bits (8 bits in a "char", others obvious from "sizeof"), you should be able to easily compute the minimum and maximum representable values for each integral type. For floating-point formats, consult Apple's Numerics Reference Manual (2nd Edition). >Anyone know the default ranges for the pointers, ... There is no such thing.