为何要进行内存对齐以及对齐规则

为何要进行内存对齐以及对齐规则 #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; co
相关文章
相关标签/搜索