Arrays
暂无描述。系统推荐的高质量记忆内容,适合每天坚持背诵学习。
卡片预览 (8 张)
What is an array?
A data structure for sorting ordered sets of data of the same data type in a single identifier
What are some characteristics of an array ?
• Static data structure • Mutable • Can only store one data type
What does static mean?
It means cannot change size once created
What does mutable mean?
It means items can be changed once created
What are the types of array? a) b) c)
a) 1 dimensional array (1D array) b) 2 dimensional array (2D array) c) 3 dimensional array (3D array)
1 dimensional array (1D array)
• A linear array • An ordered static set of elements
2 dimensional array (2D array)
• Can be visualised as a table • Go down rows and along columns to find position in an array
3 dimensional array (3D array)
• Can be visualised as a multi-paged spread sheet or multiple 2D arrays