作者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)
推 nowar100:data segment 應該是放 heap 的 10/16 11:32
→ yesa315:什麼意思呢? data segment 有等於 data section 嗎? 10/16 11:55
→ nowar100:我覺得這題有點沒頭沒尾 考試的話我也會選C 10/16 12:12