- [Instructor] Let's try an example…of jagged arrays in C#.…The first thing we're going to do is scroll down,…select our language, C#,…and then delete the code inside of here.…To create our jagged array,…the first thing we need to do is declare it.…In this case, we'll write int,…square bracket, square bracket, jagged…and have this equal a new integer array that has three rows.…We won't put a number in the column slot because, again,…the number of columns is not fixed.…

Each array within the jagged array can have as many columns…as it wants, however,…in this case our array will only have three rows.…Inside of this jagged array,…the first thing we're going to do is set row one…and that this case is going to be at index zero…and this row is going to have a new integer array…that has two spots inside of it.…It can contain two integers.…The first integer,…which is also going to be at row zero and slot zero,…is going to have the value eight.…

The second item in this row is going to be 10…and we're setting that on line 12 here.…

Resume Transcript Auto-Scroll

Author

Released

2/13/2019

Once you get past simple programs with one or two variables, you'll use data structures to store the values in your applications. Data structures are like containers—there's one for every kind of data. While structures like arrays and queues are sometimes taken for granted, a deeper understanding is vital for any programmer who wants to know what's going on "under the hood" and understand how the choices they've made impact the performance and efficiency of their applications. In this course, Kathryn Hodge provides an in-depth overview of the most essential data structures for modern programming. Starting with simple ways of grouping data, like arrays and structs, Kathryn gradually introduces more complex data structures, such as linked lists, stacks and queues, hash tables, and trees and graphs. Each lesson is accompanied by a real-world, practical example that shows the data structures in action. When you're finished with the course, you'll have a clear understanding of data structures and understand how to use them—in whatever language you're programming in: C#, Swift, JavaScript, Java, Python, and more.