An array can store elements of __________.
2023
An array can store elements of __________.
- A.
Only strings
- B.
Only integers
- C.
Different data types
- D.
Same data type
Attempted by 408 students.
Show answer & explanation
Correct answer: D
An array is a linear data structure that stores a collection of elements of the same data type in contiguous memory locations. It cannot mix different types (like integers with strings) within the same array structure. Therefore, the correct option is D.