sizeof on a word-oriented machine

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Nov 19 12:26:30 AEST 1989


In article <12570032 at hpclwjm.HP.COM> walter at 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])



More information about the Comp.std.c mailing list