Downloaded 26 times

![ 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];](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-2-2048.jpg)
![ You declare an array variable by specifying:
◦ The element type of the array.
◦ The rank of the array.
◦ The name of the variable
This specifies the rank of the
array
This specifies the name of the array variable
This specifies the element type of the
array
type[ ] name;](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-3-2048.jpg)



![ 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];](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-7-2048.jpg)
![int [] marks = new int[2] { 99, 98, 92, 97, 95};
int[] score = marks;](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-8-2048.jpg)
![ 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;](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-9-2048.jpg)
![string[,] array2Db = new string[3, 2]
{ { "one", "two" }, { "three", "four" }, { "five", "six"
} };](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-10-2048.jpg)
![ 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[][] jaggedArray = new int[3][];](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-11-2048.jpg)
![int[][,] jagged = new int[3][,]
{ new int[,] { {1,3}, {5,7} },
new int[,] { {0,2}, {4,6}, {8,10} },
new int[,] { {11,22}, {99,88}, {0,9} } };](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-12-2048.jpg)

The document explains the concept of arrays in programming, including their types such as single-dimensional, multi-dimensional, and jagged arrays. It describes the characteristics of each array type, how to declare them, and provides examples of initialization and usage in C#. The document serves as a basic introduction to array structures in programming.
Arrays are homogeneous data collections with a fixed size. Declaration format includes type, rank, and variable name.
Methods of creating and initializing arrays at compile time are discussed.
Discusses single-dimensional, multi-dimensional, and jagged arrays as types of arrays.
Single-dimensional arrays store data in one row; examples of declaration and initialization.
Multi-dimensional arrays have multiple rows and are stored sequentially. Examples included.
Jagged arrays contain elements that are arrays themselves, allowing different dimensions. Examples provided.
Thank you note concluding the presentation.

![ 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];](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-2-2048.jpg)
![ You declare an array variable by specifying:
◦ The element type of the array.
◦ The rank of the array.
◦ The name of the variable
This specifies the rank of the
array
This specifies the name of the array variable
This specifies the element type of the
array
type[ ] name;](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-3-2048.jpg)



![ 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];](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-7-2048.jpg)
![int [] marks = new int[2] { 99, 98, 92, 97, 95};
int[] score = marks;](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-8-2048.jpg)
![ 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;](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-9-2048.jpg)
![string[,] array2Db = new string[3, 2]
{ { "one", "two" }, { "three", "four" }, { "five", "six"
} };](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-10-2048.jpg)
![ 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[][] jaggedArray = new int[3][];](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-11-2048.jpg)
![int[][,] jagged = new int[3][,]
{ new int[,] { {1,3}, {5,7} },
new int[,] { {0,2}, {4,6}, {8,10} },
new int[,] { {11,22}, {99,88}, {0,9} } };](https://image.slidesharecdn.com/arrayinc-190430055621/75/Array-in-c-12-2048.jpg)
