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

What is array ?

I am not getting it, please anyone explain it

24th Nov 2016, 4:36 PM
Jameel Ahmad
2 Answers
+ 2
An array is a type of object. This object can store a concrete number of objects or primitive data types. It's like a labeled box, you can put in there all the things that match the label. With an array you can compare with ease all of the objects in it, acces wich one you want and iterate through them. Edit: I must add you normally will use them for related objects, not to store there all of your program variables
24th Nov 2016, 4:50 PM
Goio
0
(potentially bad explaination) arrays are something like dividing a variable into many variables related to(and also same type of) the array variable defined. For its actual use, I'm not sure about that, but I personally use alot of them just because they make the code cleaner
24th Nov 2016, 4:52 PM
ThisTNTSquid
ThisTNTSquid - avatar