16 下列 C++之型態,所占的記憶體何者最大?
(A) float
(B) int
(C) long
(D) double
答案:登入後查看
統計: A(39), B(24), C(99), D(264), E(0) #3275167
統計: A(39), B(24), C(99), D(264), E(0) #3275167
詳解 (共 2 筆)
#6162284
- float: 4 bytes (32 bits)
- int: 4 bytes (32 bits)
- long: 通常為 4 bytes (32 bits),但在某些 64 位元系統中可能為 8 bytes (64 bits)
- double: 8 bytes (64 bits)
9
0