Array
- An array is a consecutive collection of data of the same data type
- In C, the data in an array are guaranteed to be lay in consecutive memory with preserved order
- To declare a 1-d array
-
type identifier[size] = { data1, data2, data3, ... };
- To declare a multi-dimensional array

-
type identifier[size1][size2][...]
= { { data1, ... }, { data2, ... }, {data3, ...},
{ ... }, ... };
|
Facebook