another stupid array/pointer question
Jerome Freedman
freedman at granite.cr.bull.com
Sat Mar 3 00:56:45 AEST 1990
Suppose I have a structure
struct a {
char * a_string;
}
and a structure
struct b {
char another_string[80];
}
sizeof(struct a) should equal sizeof(char *)
but what about sizeof(struct b)?
Is the 80 character array included in the size of struct b or
is b.another_string a pointer into somewhere where there is
allocated space - is this implementation defined?
I realize this might be a "dumb" question but not as dumb as if
I didn't ask it.
Jerry Freedman, Jr
More information about the Comp.lang.c
mailing list