What is Jagged Array in C#?
You can initialize a jagged array as
int[][] marks = new int[2][]{new int[]{12,13,52},new int[]{56,85,45,89}};
Where, marks is an array of two arrays of integers – marks[0] is an array of 3 integers and marks[1] is an array of 4 integers.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
You can initialize a jagged array as
int[][] marks = new int[2][]{new int[]{12,13,52},new int[]{56,85,45,89}};
Where, marks is an array of two arrays of integers – marks[0] is an array of 3 integers and marks[1] is an array of 4 integers.
need an explanation for this answer? contact us directly to get an explanation for this answer