← 全部题目
判断·结构体占多少字节
judge
难度 3
#struct
两个 int 的结构体。
题目
结构体 struct P { int x, y; }; 在常见的 64 位环境下 sizeof(P) 为 8。
来小码星球,动手写一遍 →