-Arrays are the most basic data structures used in programming. They contain a group of a fixed number of elements which occupy the same space in memory, i.e., the memory occupied is known at compile time. Thus arrays are stored in the stack and it's values can be saved and retrieved very quickly, in `O(1)` time. Languages like `Rust` which allows for `enums` in Arrays, each element occupies the maximum space which could be required by it.
0 commit comments