+ 1

Can anyone please example why we need to use array in real life?

8th Jun 2019, 2:30 PM
Хэрлэн Бат
Хэрлэн Бат - avatar
4 Answers
+ 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.
8th Jun 2019, 3:27 PM
HonFu
HonFu - avatar
+ 2
Arrays can make programs much shorter.
8th Jun 2019, 2:33 PM
Seb TheS
Seb TheS - avatar
+ 1
Tnx guys
8th Jun 2019, 3:29 PM
Хэрлэн Бат
Хэрлэн Бат - avatar
+ 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.
8th Jun 2019, 5:35 PM
Ashish Gupta