Arrays | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Arrays

Anyone can tell in details what is arrays

5th Oct 2016, 1:01 PM
harry tenesen
harry tenesen - avatar
1 Answer
+ 2
Arrays are sequence containers with fixed-size. In general they hold a specific number of elements ordered in a strict linear sequence. For example we can declare 5 values of type int as an array without need to declare 5 different variables (each with its own identifier). Instead we can use an array and the five int values are stored in contiguous memory locations. All of them can be accessed using the same identifier of course with the proper index.
5th Oct 2016, 1:21 PM
Maciej Gontarski