What is a jagged array?

Arrays Linked Lists Questions



46 Short 80 Medium 67 Long Answer Questions Question Index

What is a jagged array?

A jagged array is an array of arrays where each element of the main array can be of different sizes. In other words, it is an array whose elements are arrays themselves. This allows for creating arrays with varying lengths, providing flexibility in storing and accessing data.