1. 在 Java 語言中,請問下列何者資料型別的變數,所需的儲存空間最少?
(A) char
(B) float
(C) double
(D) int
答案:登入後查看
統計: A(40), B(5), C(0), D(17), E(0) #2153607
統計: A(40), B(5), C(0), D(17), E(0) #2153607
詳解 (共 1 筆)
#6625426
short (短整數):: 需要2 個位元組。
char (字元):: 需要2 個位元組。
int (整數):: 需要4 個位元組。
float (浮點數):: 需要4 個位元組。
long (長整數):: 需要8 個位元組。
double (雙精度浮點數):: 需要8 個位元組。
ㅤㅤ
完整資料可以從這看:https://learn.microsoft.com/zh-tw/dotnet/visual-basic/language-reference/data-types/
如有錯誤歡迎指證
0
0