+ 3
What is the purpose of array
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.
+ 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
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
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
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
0
It's useful because you can select items hands-free.