In the multi-dimensional lesson in Q2, how does that array have 2 columns? | SoloLearn: Learn to code for FREE!

0

In the multi-dimensional lesson in Q2, how does that array have 2 columns?

How does this 2d array have only 2 columns? I understand that there are 3 rows due to there being 3 pairs of values to define the rows, but makes it have only 2 columns? int[,] array = {{2,3},{5,6},{4,6}}

11/16/2016 4:06:19 AM

Joshua

1 Answer

New Answer

0

Nvm i figured it out, theres 2 columns because there is only 1 comma separating 2 numbers in each pair, causing the amount of columns