C
C#6mo ago
Arrival

Jagged Array

Need some help to understand this topic. If anyone has the notes or links from where I can learn about it please share it with me. Thanks
8 Replies
Jimmacle
Jimmacle6mo ago
what questions do you have? $details
MODiX
MODiX6mo ago
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/ (see $code for more information on how to paste your code)
jcotton42
jcotton426mo ago
@Arrival
Arrival
ArrivalOP6mo ago
No no I don't have a code I just want to learn about it as I'm studying for my finals If you know any websites from where I can learn please tell
jcotton42
jcotton426mo ago
well you could just look at the docs, but do you not have specific questions? like is there a particular aspect that's stumping you?
Arrival
ArrivalOP6mo ago
Mostly their initialization
Jimmacle
Jimmacle6mo ago
they work the same as arrays of any other reference type
Memw
Memw6mo ago
Jagged arrays are just arrays that contain subarrays of possibly different sizes, that's about it, you could make a List<List<T>> and add a lot of different lists And you can do it with the int[][] specification too
int[][] jagged = [
[1, 2],
[1, 2, 3]
];
int[][] jagged = [
[1, 2],
[1, 2, 3]
];
Want results from more Discord servers?
Add your server