Guidelines

This site is for tech Q&A. Please keep your posts focused on the subject at hand.

Ask one question at a time. Don't conflate multiple problems into a single question.

Make sure to include all relevant information in your posts. Try to avoid linking to external sites.

Links to documentation are fine, but in addition you should also quote the relevant parts in your posts.

Recent questions tagged array

Arrays are collection data structures that can contain zero or more elements. The elements are accessed by their position (index), which usually starts at 0. Depending on the programming language arrays can be of fixed size (the size of the array is defined at creation time and cannot be changed later on) or dynamically sized (the array is created with an initial size which can be changed later on).

Arrays can also have multiple dimensions (for example, a chess board could be represented as a 2-dimensional fixed-size 8x8 array). Not all programming languages support multidimensional arrays, but the can normally be emulated via nested arrays. An array of arrays, sometimes also called a jagged array, can be used the same way as a 2-dimensional array. The major difference is that in a jagged array the nested arrays are not guaranteed to have the same size (hence the name).

1 vote
1 answer 1.1k views
1 vote
2 answers 377 views
1 vote
1 answer 258 views
asked in Scripting
by Ansgar Wiechers (115) 2 18 33
To see more, click for the full list of questions or popular tags.
...