Help, page 197 K&R !!!

Atula Herath atula at cs.keele.ac.uk
Fri Jun 30 21:41:52 AEST 1989


Could somebody please explain me follwing para, from the K&R.

Page 197, para 7 :

"Two structures may share a common initial sequence of members; that is,
the same member may appear in two different structures if it has same type
in both and if all previous members are the same in both. (Actually, the
compiler checks that a name in two different structures has the same type
and offset in both, but if preceding members differ the construction is
nonportable.) "

What does that mean ?

I was unable to clarify that, even after doing few couple of examples. Is
this a way of sharing variables ?.


Thanks in advance

Athula


"
-- 
[5;5m
										[0;0m



More information about the Comp.lang.c mailing list