Onedimensional Arrays (Exercise) – Learn C#


This is an exercise for this YouTube video.

Happy learning and good luck!

How can you find out the number of elements inside an array called "myArray"?
What is the index of the 8th element inside an array with length of 20?


Assignment: Create 2 identical arrays – one will be “filled up” manually and the other one will use the collection initializer.


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

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