8
H. Murai et al.
Fig. 6 Global view and local view
Assuming that an array A is declared by the following statement,
int A[100];
some array sections can be specified as follows:
A[10:10]
array section of 10 elements from A[10] to A[19]
A[10:]
array section of 90 elements from A[10] to A[99]
A[:10]
array section of 10 elements from A[0] to A[9]
A[10:5:2] array section of 5 elements from A[10] to A[18] by step 2
A[:]
array section of the whole of A
H. Murai et al.
Fig. 6 Global view and local view
Assuming that an array A is declared by the following statement,
int A[100];
some array sections can be specified as follows:
A[10:10]
array section of 10 elements from A[10] to A[19]
A[10:]
array section of 90 elements from A[10] to A[99]
A[:10]
array section of 10 elements from A[0] to A[9]
A[10:5:2] array section of 5 elements from A[10] to A[18] by step 2
A[:]
array section of the whole of A
