C++笔试题之字节对齐

struct的对齐问题是由一道笔试题想到的,笔试题以下: #include <iostream> using namespace std; typedef union student { char name[10]; long sno; char sex; float score [4]; } STU; void main () { STU a[5];
相关文章
相关标签/搜索