![]() |
![]() |
![]() |
![]() |
![]() |
|
To access an element of a multidimensional array, you specify each index in its own pair of brackets. For example, to access the closing price on the second day, you write the following:
*-- Row index, closing price (0 is the low, 1 is the high)
v
djia[2][1];
^
*-- Column index, second day (0 would be first day)