Size of below structure is 32 bytes, how it is 32 bytes?
can you explain me?
2+2+2+2+4+8+8=28 bytes
what will pragma pack directive do ? will this changes alignment?Code:#pragma pack(push, 8) struct MY_STRUCT { char a[2]; short b; short c; short d; int e; long long x; long long y; };