How do you reference all the elements in a one-dimension array?
4 years ago
Data Structure and Algorithm
To reference all the elements in a one -dimension array, you need to use an indexed loop, So that, the counter runs from 0 to the array size minus one. In this manner, You can reference all the elements in sequence by using the loop counter as the array subscript.
Sujan Bk
Jan 9, 2022