Interview Question
Qus: What is a Jagged array?
A jagged array is an array whose elements are arrays. A jagged array is also known an "array of arrays."
For example -
int[][] jaggedArray = new int[5][];
A jagged array is an array whose members are arrays. The members of a jagged array can be of different dimensions and sizes.
Answers (2)
For example -
int[][] jaggedArray = new int[5][];