Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Multi-dimensional Arrays
Multidimensional arrays are constructed by declaring arrays of array type. These
arrays are stored in memory in such way that the right most subscript changes
fastest, i.e. arrays are stored “in rows”. Here is a sample 2-dimensional array:
m : 
array[5] of array[10] of byte;   // 2-dimensional array of size
5x10
A variable m is an array of 5 elements, which in turn are arrays of 10 byte each.
Thus, we have a matrix of 5x10 elements where the first element is 
m[0][0]
and
last one is 
m[4][9]
. The first element of the 4th row would be 
m[3][0]
.
146
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroPASCAL PRO for AVR
CHAPTER 5