0% found this document useful (0 votes)
53 views7 pages

Name:-Shubham Tripathi Class:-TYBSC - IT/B Roll No:-595 Subject:-Advanced Web Programming Topic:-Arrays

The document discusses different types of arrays in C#. It defines an array as a homogeneous collection of similar data types of fixed size. It describes single dimensional arrays as the simplest type containing one row of data. Multi-dimensional arrays are also called rectangular arrays, containing more than one row stored sequentially. Jagged arrays are arrays whose elements are other arrays, allowing the sub-arrays to be different sizes.

Uploaded by

Ajay Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views7 pages

Name:-Shubham Tripathi Class:-TYBSC - IT/B Roll No:-595 Subject:-Advanced Web Programming Topic:-Arrays

The document discusses different types of arrays in C#. It defines an array as a homogeneous collection of similar data types of fixed size. It describes single dimensional arrays as the simplest type containing one row of data. Multi-dimensional arrays are also called rectangular arrays, containing more than one row stored sequentially. Jagged arrays are arrays whose elements are other arrays, allowing the sub-arrays to be different sizes.

Uploaded by

Ajay Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

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

You might also like