+ 3

What is the purpose of array

18th Jun 2016, 3:49 PM
Ozii
Ozii - avatar
6 Respostas
+ 5
you can use it for organizing stuff and if you want to group stuff like variables together. it makes it easier to do a specific action to all of them. also if you're say, making a hangman game and you want to pick a random word then you need to make an array with a bunch of random words and have a function picking a random number for an index and returning the value of "Array[index]". All which you couldn'd do without the array. That is just one example of an array's usefulness.
18th Jun 2016, 4:46 PM
Kayla
+ 3
it holds a collection of data and it makes it easier for you to acces it just by using the index of the data
19th Jun 2016, 5:12 AM
hani chrife
hani chrife - avatar
0
it holds the data as much we want and allocates memory according to that. this inturn help in saving the memory. it used for matrix methods etc
20th Jun 2016, 5:58 AM
Nishanthini Radhakrishnan
0
array is used to collect /store the data of same type. functionality of array are just like matrices. it's very easy to allocation and de-allocation of data with just its index number. it saves the memory of system
1st Jul 2016, 7:46 AM
sorath Peetamber
sorath Peetamber - avatar
0
arrays enables you to create a variable with multiple values so you dont have to write multiple variable names... hope my answer helps :3
10th Jul 2016, 2:26 PM
Francisco Muan
Francisco Muan - avatar
0
It's useful because you can select items hands-free.
28th Dec 2016, 10:34 PM
Mark
Mark - avatar