Code: struct st{ char c; int i; short s; }; int main(){ cout<<sizeof(st)<<endl; } Why the size is 12, not 8 or 7?
struct st{ char c; int i; short s; }; int main(){ cout<<sizeof(st)<<endl; }