Difference between revisions of "Array"
Duck master (talk | contribs) (created page w/ basic summary) |
|||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
− | Arrays are mutable and can be appended to, deleted from, searched, and concatenated efficiently; however, especially in [[statically typed]] programming languages, an array can only hold entries of the same [[datatype]]. By storing arrays within arrays, [[ matrix|matrices]]or other multidimensional data structures can be simulated. | + | Arrays are mutable and can be appended to, deleted from, searched, and concatenated efficiently; however, especially in [[statically typed]] programming languages, an array can only hold entries of the same [[datatype]]. By storing arrays within arrays, [[ matrix|matrices]] or other multidimensional data structures can be simulated. |
==Analogues== | ==Analogues== | ||
Line 9: | Line 9: | ||
==See also== | ==See also== | ||
− | *[[List]] | + | * [[List]] |
− | *[[Data structure]] | + | * [[Data structure]] |
− | *[[Programming]] | + | * [[Programming]] |
− | {{stub}}[[Category:Introduction to Programming]] | + | {{stub}} |
+ | |||
+ | [[Category:Introduction to Programming]] | ||
+ | |||
+ | [[Category:Computer programming]] |
Latest revision as of 16:07, 18 May 2025
In many programming languages (like C++ and Swift, for example), an array is a data structure that stores multiple pieces of data in a specific order.
Usage
Arrays are mutable and can be appended to, deleted from, searched, and concatenated efficiently; however, especially in statically typed programming languages, an array can only hold entries of the same datatype. By storing arrays within arrays, matrices or other multidimensional data structures can be simulated.
Analogues
The analogue in Python of the array is the list. The analogue in R of the array is the vector.
See also
This article is a stub. Help us out by expanding it.