Name:-Shubham Tripathi
Class:-TYBSC.IT/B
Roll no:-595
Subject:-Advanced Web Programming
Topic:-Arrays
WHAT IS AN ARRAY ?
Array are the homogeneous(similar) collection of data types.
Array Size remains same once created.
Simple Declaration format for creating an array type [] identifier
new type [integral value];
TYPES OF ARRAY
Single Dimensional Array.
Multi-Dimensional Array.
Jagged Array.
Single Dimensional Array:-
The one dimensional array or single dimensional array in
C# is the simplest type of array that contains only one
row for storing data.
Declaration: double[] balance = new double[10];
Multi-Dimensional Array:-
Multi-dimensional arrays are also called rectangular
array.
Stored sequentially.
It contains more than one rows.
Declaration: type[.] array = new type[9, 9]; array[3,8] =
100;
Jagged Array:-
A jagged array is an array whose elements are arrays.
The elements of a jagged array can be of different
dimensions and sizes.
Declaration: int[] jagged Array = new int[3][];
THANK YOU