|
-
December 3rd, 2010, 06:56 AM
#16
Re: struct size
 Originally Posted by hypheni
Yes that I posted earlier that if I use sizeof(struct) is gives 12. but considering the struct contents value its not being 12, thats why asked.
A structs contents is not only what you see visibly -- that's the point. The contents of the struct include padding bytes which you can't see or predict by just looking at a struct declaration.
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|