The same logic applies for the array level and column indexes too. So, for example, if the number of rows is 3, then the index representation for accessing the data in rows will be 0, 1 and 2. The index representation of the array for the first element always starts with zero and ends with size-1. In 3D arrays representation, the first square bracket represents the level of the array that has to be considered, second would be the number of rows, and the third one is for the number of columns. The data inside the array can be accessed through the above representation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |