In C #, the jagged array is also called the array of the arrays, because the arrays are its elements. Jagged array element size can be differ.
Jagged Array Declaration
Declaring jagged array with two items.
Jagged Array Initialization
Initialization Jagged array. The size of the element can be vary.
Jagged Array initialization and fill with elements
Example for initializing and filling in jagged array elements
C # jagged example that declares, initializes and traverse jagged arrays.
Output:
11 21 56 78
42 61 37 41 59 63
See an example in which the jagged array is initialized during statement.
Example:
Output:
11 21 56 78
2 5 6 7 98 5
2 5
We use cookies to ensure you get the best experience on our website, if you continue to browse you'll be acconsent with our Cookies Policy.
Got it!