+ 1
Why are use arrays
7 Answers
+ 13
to store same type of data at one place
+ 5
"Why ?"
Here are some advantages why we use them :-
1. It is used to represent multiple data items of same type by using only single name.
2. It can be used to implement other data structures like linked lists, stacks, queues, trees, graphs etc.
3. 2D arrays are used to represent matrices.
+ 3
what is linked list give one example with explanation and thanks for array
+ 3
actually we don't use array then that time we are create many memory space because different data type have different value store so use array to store same data type multiple value
+ 1
you have 20 eggs,why put all the eggs into one single crate to transport it around?
why not place each egg in 20 different cups?.the first method is more convenient
0
array is like a bus or train,You can store your value and use it whenever you want