O'Reilly logo

Illustrated C# 2008 by Daniel Solis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Arrays

Arrays

An array is a set of uniform data elements, represented by a single variable name. The individual elements are accessed using the variable name together with one or more indexes between square brackets, as shown here:

Arrays

Definitions

Let's start with some important definitions having to do with arrays in C#.

  • Elements: The individual data items of an array are called elements. All elements of an array must be of the same type, or derived from the same type.

  • Rank/dimensions: Arrays can have any positive number of dimensions. The number of dimensions an array has is called its rank.

  • Dimension length: Each dimension of an array has a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required