Jumat

Definition of one-dimensional array



Is a variable that stores a set of data that has the same type and the element to be accessed only through an index or subscript.

The general form of declaration:

nama_array [jumlah_eleman];

* An array of two-dimensional

Is a variable that stores a set of data that has the same type and the element to be accessed via 2 index or subscript of the index row and column index.

The general form of declaration:

nama_array [jumlah_eleman_baris] [jumah_eleme_kolom];

* Multidimensional arrays
Is a variable that stores a set of data that has the same type and the element to be accessed through many indexes or subscripts. This array is used for automatic, 2-dimensional arrays are also included into a multidimensional array.

Tidak ada komentar:

Posting Komentar