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) ?