Which of the following is a disadvantage of parallel array over the traditional arrays?

Which of the following is a disadvantage of parallel array over the traditional arrays?
A. When a language does not support records, parallel arrays can be used
B. Increased locality of reference
C. Ideal cache behaviour
D. Insertion and Deletion becomes tedious
 
Answer: D
Explanation: Insertion and deletion of elements require to move every element from their initial positions. This will become tedious. For Record collection, locality of reference and Ideal Cache behaviour we can use parallel arrays.
 

Tìm kiếm

Back
Top