Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: sizeof on a word-oriented machine Message-ID: <11649@smoke.BRL.MIL> Date: 19 Nov 89 01:26:30 GMT Article-I.D.: smoke.11649 References: <11135@riks.csl.sony.co.jp> <12570032@hpclwjm.HP.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <12570032@hpclwjm.HP.COM> walter@hpclwjm.HP.COM (Walter Murray) writes: >It seems to me the only conclusion is that the dpANS guarantees that >sizeof(x)==37. Yes, and I know for a fact from discussion with several "principal members" of X3J11 that it was intended that the standard guarantee a macro like the following to work for all conforming implementations: #define Elements( a ) (sizeof a / sizeof a[0])