Skip to content

Commit f1ca304

Browse files
SwastyyPanquesito7
andauthored
Update en/Data Structures/Arrays/array.md
Co-authored-by: David Leal <[email protected]>
1 parent 622d704 commit f1ca304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/Data Structures/Arrays/array.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Arrays
22

3-
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.
3+
Arrays are the most basic data structures used in programming. They contain a group of a fixed number of elements that occupy the same space in memory. I.e., the memory occupied is known at compile time. Thus arrays are stored in the stack, and their values can be saved and retrieved very quickly in `O(1)` time. Languages like `Rust` which allows `enums` in Arrays, each element occupies the maximum space which could be required by it.
44
All arrays consist of contiguous memory locations. We can access the elements with their index. The lowest address corresponds to the first element, and the highest address to the last element.
55

66
# Source

0 commit comments

Comments
 (0)