+ 1
Can anyone please example why we need to use array in real life?
4 Respostas
+ 6
Because you want to have many items of the same kind in one place where you can easily find them.
Examples:
1.) words in a vocabulary list
2.) foods in a calory app
3.) files in a directory
4.) opponents in a level
5.) phone numbers in a phone book
List could go on and on.
+ 2
Arrays can make programs much shorter.
+ 1
Tnx guys
+ 1
You can use array to store data of similar type.. like if you have to store employee id of several employee then instead of creating separate variable for each employee you can just create an array and store the data.