Multidimensional & Jagged Arrays (Exercise) – Learn C#

3  comments

This is an exercise for this YouTube video.

Happy learning and good luck!

Which array does not need to be "rectangular"?
Which declaration of a 3D array is correct?

 

Assignment: Make a 2D jagged array and a 2D multidimensional array with the exact same content using a collection initializer.

 

Click to see the answer

 

 

Assignment: Print out the contents of both of the arrays from the previous assignment.

 

Click to see the answer

 

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a Flutter freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪

You may also like

Flutter Bloc & Cubit Tutorial

Flutter Custom & Staggered Page Transition Animation Tutorial

  • I see you don’t monetize your site, don’t waste your traffic, you can earn additional cash every month because you’ve got high quality content.

    If you want to know how to make extra $$$, search for: Boorfe’s tips best adsense alternative

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
    >