結構體的大小

當我們定義一個結構體時 結構體中可能含有若干屬性 假如我們頂一個結構體Student: typedef struct student { char a; int b; float c; double d }stu; int main() { int a = sizeof(stu); printg("%d\n",a); } 這個結果爲
相關文章
相關標籤/搜索