#include <iostream>
using namespace std;
struct QQ
{
short b = 7788;
//2 byte padding.
int a = 5566;
};
int main() {
cout<<sizeof(QQ)<<endl;
QQ q;
cout<<"&q.a = "<<&q.a<<endl;
cout<<"&q.b = "<<&q.b<<endl;
cout<<"delta: "<<(char*)&q.a - (char*)&q.b<<endl;
short* ptr = (short*)&q;
ptr++;
//ptr++;
cout<<*((int*)ptr)<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpzdHJ1Y3QgUVEKewoJc2hvcnQgYiA9IDc3ODg7CgkvLzIgYnl0ZSBwYWRkaW5nLgoJaW50IGEgPSA1NTY2OwoKfTsKaW50IG1haW4oKSB7Cgljb3V0PDxzaXplb2YoUVEpPDxlbmRsOwoKCVFRIHE7Cgljb3V0PDwiJnEuYSA9ICI8PCZxLmE8PGVuZGw7Cgljb3V0PDwiJnEuYiA9ICI8PCZxLmI8PGVuZGw7Cgljb3V0PDwiZGVsdGE6ICI8PChjaGFyKikmcS5hIC0gKGNoYXIqKSZxLmI8PGVuZGw7CglzaG9ydCogcHRyID0gKHNob3J0KikmcTsKCXB0cisrOwoJLy9wdHIrKzsKCWNvdXQ8PCooKGludCopcHRyKTw8ZW5kbDsKCXJldHVybiAwOwp9