-
December 2nd, 2010, 12:01 PM
#1
struct size
though this is a simple qus im a bit confused.
how many bytes are allocated for this structure?
struct data
{
int i;
char c;
int j;
};
What if you use #pragma pack?.
And please explain me #pragma pack, i didnt understood it from msdn.
is it calculated as (int = 4bytes + char = 1byte + int = 4bytes) ?
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
|