Multi dimensional arrays

Nasza ocena:

3
Wyświetleń: 504
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Multi dimensional arrays - strona 1

Fragment notatki:

Multi-dimensional arrays • C provides rectangular multi-dimensional arrays • Such arrays are much less used than arrays of pointers • A two-dimensional array is a one-dimensional array, each of whose elements is an array • Syntax: like for one-dimensional arrays • Example: double matrix[5][10]; matrix[3][7]=45.67; • Elements are stored by rows in the memory • The rightmost subscript (”column”), varies fastest as elements are accessed in storage order ... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz