What are Jagged Arrays?

An array of arrays is called a Jagged Array. Each individual array within the Jagged Array can be of variable length.

var jaggedArray = new int[10][];
jaggedArray[0] = new int[5];
jaggedArray[1] = new int[10];
jaggedArray[2] = new int[2];

An array of arrays is called a Jagged Array. Each individual array within the Jagged Array can be of variable length.

var jaggedArray = new int[10][];
jaggedArray[0] = new int[5];
jaggedArray[1] = new int[10];
jaggedArray[2] = new int[2];

Buy Me A Coffee

Found this article helpful? Please consider supporting!

Ram
Ram

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity. You can connect with me on Medium, Twitter or LinkedIn.

Leave a Reply

Your email address will not be published. Required fields are marked *