In array, the accessing part is very simple by the use of the index number.
What are the pros and cons of arrays?
Pros of array
- The accessing part is simple.
- The array represents multiple data items that are of the same type
- The search process can be applied to an array easily.
Cons:
- The number of elements to be stored in arrays should be known beforehand.
- An array is static.
- Insertion and deletion are difficult in an array.
- Allocating more memory than required leads to a wastage of memory.
Pros and Cons of Parallel array:-
Pros:
- Parallel arrays are utilized in languages that support solely arrays of primitive varieties
- Parallel arrays are straightforward to know and use.
Cons:-
- They have very little direct language support.
Learn more about array on:
https://brainly.com/question/26104158