another stupid array/pointer question

Henry Spencer henry at utzoo.uucp
Sat Mar 3 22:59:16 AEST 1990


In article <1990Mar2.135645.17274 at granite.cr.bull.com> freedman at granite.cr.bull.com (Jerome Freedman) writes:
>    struct b {
>	char another_string[80];
>    }
>
> Is the 80 character array included in the size of struct b ...

Yes.  There is little "invisible machinery" in C; in general, you get
what you ask for.  In this case, you've asked for a struct containing
an 80-character array.
-- 
MSDOS, abbrev:  Maybe SomeDay |     Henry Spencer at U of Toronto Zoology
an Operating System.          | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list