C-内存对齐以及对齐规则

#include<iostream> using namespace std; struct A{ char a; int b; short c; }; struct B{ short c; char a; int b; }; int main(){ cout<<sizeof(A)<<endl; cout<<sizeof(B)<<e
相关文章
相关标签/搜索