+ 1
I didn't actually understood it please can anyone explain? because I am 13 yrs old
3 ответов
+ 4
Arrays are simply a lot of variables (it may be integer,character etc) collected under a specific name.
For example :- in C/C++
int arr[10]
is an array of 10 variables of integer type under the name "arr"
Elements of the array can be accessed using their index like this👇
arr[0] -> first element
arr[1] -> second element
.
.
.
.
arr[9] -> tenth or last element