What are jagged arrays for?

I already know, or rather read, what they are good for, but I don’t understand.

Rigid arrays are useful for modeling sparse data structures where you can't always allocate memory for each element if it won't be used

Can anyone please help me understand this? and imagine examples and real-life situations where you are making decisions and weighing the use of jagged arrays against something else like arrays.

+3
arrays c # jagged-arrays software-design


source to share


No one has answered this question yet

See similar questions:

390
What is the difference between a multidimensional array and an array of arrays in C #?
68
Why do we have both a jagged array and a multidimensional array?
42
What is a jagged array?

or similar:

7494
How can I remove a specific element from an array in JavaScript?
6155
What is the difference between string and string in C #?
4380
For each by an array in JavaScript?
3714
How to check if an array contains a value in JavaScript?
3393
Create ArrayList from array
2895
How do I add something to the array?
2893
Looping through an array in JavaScript
2543
How can I check if an object is an array?
2335
Removing an element from an array in PHP
2199
How do I clear an array in JavaScript?



All Articles
Loading...
X
Show
Funny
Dev
Pics