Onedimensional Arrays (Exercise) – Learn C#

0  comments

This is an exercise for this YouTube video.

Happy learning and good luck!

[qsm quiz=5]

 

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
int[] myArray = new int[2];
myArray[0] = 5;
myArray[1] = 10;

int[] myCoolArray = {5, 10};

 

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a freelancer and most importantly developer educator, he is set on helping other people succeed in their Flutter app development career.

You may also like

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