+ 3

Why do we use arrays?

Good day, comrades. Explain in what real situations arrays are used?

30th Sep 2019, 4:29 AM
World Kortu
World Kortu - avatar
5 Answers
+ 3
World Kortu if you would like to store your grade marks , you would go with int or double... what if you would like to store 10 different subjects' grade marks. you can go with ten variables of int or double type... this can be tedious as you have to manage ten variables.. these can be easily achieved by help of array
30th Sep 2019, 4:34 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 2
It keeps the code concise comrade.
30th Sep 2019, 1:21 PM
Sonic
Sonic - avatar
0
We use them to store data of the same type and category (an array of students’ grades for example) in one place so we can access it more easily and keep the code cleaner and more organised.
30th Sep 2019, 4:25 PM
Kireii
Kireii - avatar