[Solved] What is a sparse array? (MCQ)

What is a sparse array?

a) Data structure for representing arrays of records
b) Data structure that compactly stores bits
c) An array in which most of the elements have the same value
d) An array in which memory is allocated in run time

Answer: c
Explanation: They are set to a default value, usually 0 or null.

Comments