[筆記]Storing Array 儲存陣列

儲存陣列有兩種:

1.Homogeneous arrays
– Row-major order versus column major order
– Address polynomial

他是由列與行來儲存的  例如:3列*4行= 12個儲存空間,編號是連續的例如:x,x+1,x+2....etc

 2.Heterogeneous arrays
– Components can be stored one after the other in a
contiguous block
– Components can be stored in separate locations
identified by pointers

它儲存在連續的空間,他也可以用指標分開來儲存在不同的位置