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


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Development made simple

We're here to help you. If you have any questions, let us know.

Copyright 2017 - 2018 Reso Coder © All Rights Reserved