13 A 和 B 皆是有 100 個元素的一維陣列,且每個元素中的數字皆以 32 位元(Bits)存放。在執行下列迴圈運 算後,需要多少記憶體空間才能將陣列 A 完整存放?
(A)400 個位元組(Bytes)
(B)800 個位元組(Bytes)
(C)3200 個位元組(Bytes)
(D)6400 個位元組(Bytes)
(A)400 個位元組(Bytes)
(B)800 個位元組(Bytes)
(C)3200 個位元組(Bytes)
(D)6400 個位元組(Bytes)
答案:登入後查看
統計: A(105), B(72), C(46), D(28), E(0) #2791029
統計: A(105), B(72), C(46), D(28), E(0) #2791029
詳解 (共 2 筆)
#5753229
1Byte=8Bits
A[i], i=0~99 => 32bits*100=3200bits=400Bytes
A[i], i=0~99 => 32bits*100=3200bits=400Bytes
1
0