How can we describe an array in the best possible way?
2023
How can we describe an array in the best possible way?
- A.
Arrays are immutable
- B.
Container that stores the elements of similar types
- C.
The array is not a data structure
- D.
More than one of the above
- E.
None of the above
Attempted by 1498 students.
Show answer & explanation
Correct answer: B
An array is a data structure that stores elements of the same data type in a contiguous block of memory. It allows random access to elements using indices, making it efficient for retrieval. Arrays are widely used in programming for organizing and managing collections of data.