對內存對齊模式的理解

對內存對齊模式的理解 在學習結構體的時候,我們在定義一個結構體,例如, typedef struct STI { char id[9]; char name[15]; int age; char sex; int score; }STI; STI stu = {「123456」, 「zhangke」, 18, 0, 90}; 經過上機驗證會發現,sizeof(STI)的結果是36,而並不是33.而
相關文章
相關標籤/搜索