i

ASP.Net A Complete Guide

C# Arrays

An array is a data type, which can store the number of values sequentially using below syntax.

Declaration:  

Int [] arrayType;

We know that simple variable can store a single value in it. When we want to store multiple values for the single variable at that time, we can use the array.

Initialization:

 int [] arrayType=new int [5];

Summary of Array:

An Array stores values in a series starting with a zero index.

The size of an array must specify at the time of initialization.

Array values can be accessed using the index.

An Array can be single dimensional, multi-dimensional array