作者yesa315 (XD)
看板Grad-ProbAsk
标题[理工] [OS]-local variable
时间Fri Oct 16 11:25:55 2009
关於 local variable 的叙述 哪个是错的?
a) They make efficient use of memory because their storage space can
be released
b) They can only be accessed inside the function that declares it
c) They are usually created in the data segment
答案是写A 但我不懂 我觉得答案是C
恐龙本上写 local variable 是在stack里
请高手指导 谢谢!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.127.208.96
※ 编辑: yesa315 来自: 140.127.208.96 (10/16 11:26)
1F:推 nowar100:data segment 应该是放 heap 的 10/16 11:32
2F:→ yesa315:什麽意思呢? data segment 有等於 data section 吗? 10/16 11:55
3F:→ nowar100:我觉得这题有点没头没尾 考试的话我也会选C 10/16 12:12