Creating and Using Arrays

C Sharp > Creating and Using Arrays
18.10.2016 16:18:36


Наиболее часто встречающиеся слова в статье:

[arrayName] [Creating] [supports] [   Single-dimensional] [   Multidimensional] [   Jagged] [   Creating] [   Accessing]


Статья:

Creating and Using Arrays

•    C# supports:

•    Single-dimensional arrays

•    Multidimensional arrays

•    Jagged arrays

•    Creating an array

int[] arrayName = new int[10];

•    Accessing data in an array:

•    Bv index

int result = arrayName[2];

•    In a looo

for (int i = 0; i < arrayName.Length; i++)

{

int result = arrayName[i];

}