On Jan 3, 10:21*pm, xpika <hawk.a...@gmail.comwrote:
out of curiosity I would like to know how a struct is represented in C
the short answer to this is "why do you need to know?"
the second shortest answer is it is highly compiler (even compiler
version)
dependent.
and then knowing that how to access the members manually.
take a look at the offsetof() macro, it may answer the questions you
have
All Ive gathered is that The first member is always the same as the
address of the struct.
but, again, WHY do you want to do this?
--
Nick Keighley