PDA

View Full Version : Jagged Array ?



islamicastrologer
05-04-2019, 02:58 AM
Hello Dear,

Please Tell Me What is a Jagged Array ?

Mahender
08-30-2019, 03:59 AM
A jagged array is an array whose elements are arrays. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array of arrays." The following examples show how to declare, initialize, and access jagged arrays

Astrologer (https://www.astrologermahendhar.com/) | Psychic Reader Toronto (https://www.astrologermahendhar.com/) | Best Toronto Psychic (https://www.astrologermahendhar.com/)

asad1997
09-14-2019, 02:07 AM
A jagged array is an array of arrays such that member arrays can be of different sizes, i.e., we can create 2-D arrays but with the variable number of columns in each row. These types of arrays are also known as Jagged arrays.

arpita
10-05-2019, 01:20 AM
Havelock Island (https://rsrtoursandtravel.com/places-to-visit/south-andaman/havelock-island-package-kalapathar-elephanta-radhanagar-beach-trek-activities-cruise.php)is a beautiful place to visit. It should be a must on your list. Andaman has Turquoise beaches, live corals and much more to offer.

Site Galleria
11-05-2019, 11:11 PM
Jagged thread is also known as ragged array. It is an array of arrays in which the member arrays can be of different dimennsions and producing rows of jagged edges when visualized as output.

RuskinF
05-28-2020, 06:16 AM
I would like to explain to you what Jagged Array is using an example.
The following is a declaration of a single-dimensional array that has three elements, each of which is a single-dimensional array of integers:

C#

Copy
int[][] jaggedArray = new int[3][];
Before you can use jaggedArray, its elements must be initialized. You can initialize the elements like this:

C#

Copy
jaggedArray[0] = new int[5];
jaggedArray[1] = new int[4];
jaggedArray[2] = new int[2];
Each of the elements is a single-dimensional array of integers. The first element is an array of 5 integers, the second is an array of 4 integers, and the third is an array of 2 integers.