深信服校园招聘笔试题

编程语言 · 历年真题改编 · 题号 41933
单选题编程语言难度 3真题改编 · 2023中大厂

题目

请调节如下结构体成员变量的顺序,使之内存对齐 struct process { uint16_t lis_port; uint8_t protocol; char path[4096]; char name[256]; int32_t pid;

选项4 个

Astruct process { char path[4096]; char name[256]; int32_t pid; uint16_t lis_port; uint8_t protocol; };
Bstruct process { uint8_t protocol; uint16_t lis_port; char path[4096]; char name[256]; int32_t pid; };
Cstruct process { uint16_t lis_port; char path[4096]; uint8_t protocol; char name[256]; int32_t pid; };
Dstruct process { char path[4096]; uint16_t lis_port; uint8_t protocol; char name[256]; int32_t pid; };
🔒 答案与解析:登录后可查看本题答案、解析与考点讲解,并可在线作答自动判分 登录 / 注册
‹ 上一题 全部专题 下一题 ›

同类型题目编程语言 · 继续练习

题目免费浏览 · 整套练习与模拟考登录后开始 · 答案与解析登录后可见