Question: What are one dimensional array how are they stored?
A one dimensional array is a data structure that stores a sequence of elements of the same type. Each element in the array has a unique index that can be used to access or modify it. One dimensional arrays are stored in contiguous memory locations, meaning that the elements are placed next to each other in a linear fashion. This makes it easy to traverse the array using a loop or a pointer.
Comments
Post a Comment
let's start discussion