Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter 6
Data Types (Array Types (設計議題 (What types are legal for…
Chapter 6
Data Types
-
Primitive Data Types
-
整數
-
一個語言可以有多達8種不同的整數型態 (e.g. Java : byte, short, int, long)
-
-
-
-
-
-
-
Array Types
-
-
-
-
-
-
-
實作
存取函數 : 將陣列索引對應到記憶體位址
-
若元素型態、陣列storage皆為static bound,則address (list[lower_bound])及element size皆在compile time 被計算。加與乘則是在run-time
多維
-
-
公式 : Location (a[i,j]) = address of a[row_lb,col_lb] + (((i - row_lb) n) + (j - col_lb)) * element_size
-
-