Which of the following data structure is linear data structure?
-
Trees
-
Graphs
-
Arrays
-
None of above
C
Correct answer
Explanation
Arrays store elements sequentially in contiguous memory locations, where each element can be accessed directly by its index. This linear organization distinguishes them from non-linear structures like trees and graphs, where elements have multiple connections and hierarchical relationships.