标签:
#include <iostream> using namespace std; struct A { long a1; short a2; int a3; int *a4; }; int main() { A temp; cout << sizeof(temp) << endl; cout << sizeof(temp.a1) << endl; cout << sizeof(temp.a2) << endl; cout << sizeof(temp.a3) << endl; cout << sizeof(temp.a4) << endl; return 0; }
标签:
原文地址:http://www.cnblogs.com/xuyan505/p/5348339.html