+ 3
What is jagged array ... ??
please give me example
5 odpowiedzi
+ 2
Jagged array means that the element of the Jagged array is an array, too.
int *ja[10]; //each pointer points to an array.
https://en.m.wikipedia.org/wiki/Jagged_array
+ 1
Like this...
var jagged = [
[1, 2, 3],
[4, 5, 6]
];
So to get number 4, you need to type jagged[1][0] .
+ 1
thank you very much
+ 1
jagged array means array in array and it used popularly in java language
+ 1
2 dimensional array
int [][] jagged =new int[3][]
In the above declaration, you declare a 2d array having 3 arrays. Each of these three arrays which belong to the jagged array need to be defined.