0

I didn't quite understand the arrays, could explain it to me in a easier way?

16th Mar 2016, 4:54 PM
Waile Hijji
Waile Hijji - avatar
3 Respuestas
+ 3
It´s like a shelf, every index is like a box that can contain objects.
23rd Mar 2017, 12:10 PM
T0nd3
+ 1
its a collection of items with the same objection. for example building tools = [trowel, wire brush, shovel, wheel barrow] or school stuff = [teacher, keytaker, cleaner, nurse, headmaster]
16th Mar 2016, 5:09 PM
Lloyd Mwaluku
Lloyd Mwaluku - avatar
0
The array is a collection of elements. Every elements has its index. The first element (in most languages) starts from index 0. So the 10th element is at index 9. The array can be of any type, but all elements in it must be of the same type. If the array is declared of type integer, the elements must be integers. The string type is actually array of characters. That's why you can get specific characters from it and to replace their places(indexes), or whatever you like. To understand them more, just practice with them. :)
23rd Mar 2017, 5:30 PM
Boris Batinkov
Boris Batinkov - avatar