Zero Length Arrays Allowed in C Standard?

Henry Spencer henry at utzoo.uucp
Fri Dec 15 04:34:21 AEST 1989


In article <1498 at utkcs2.cs.utk.edu> battle at alphard.cs.utk.edu (David Battle) writes:
>Is the order of elements of a structure guaranteed to be the same in memory
>as in the program? ...

In ANSI C, yes.  (Section 3.5.2.1)  In pre-ANSI implementations, well,
probably.
-- 
1755 EST, Dec 14, 1972:  human |     Henry Spencer at U of Toronto Zoology
exploration of space terminates| uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list