Which of the following is true regarding uninitialised variables in C?单项选择题

A

They automatically inherit default values defined by the compiler.

B

They may contain leftover data from previous memory use, potentially leaking sensitive information or altering control flow.

C

They are automatically zeroed out by the operating system when allocated on the stack, creating a need for kernel mode privilege escalation.

D

They increase compilation time due to additional memory padding needed for safety.

E

They cannot be exploited directly because modern C compilers insert runtime checks for uninitialised reads.

F

They always trigger a segmentation fault.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!