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}}

16th Nov 2016, 4:06 AM
Joshua
1 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
16th Nov 2016, 5:58 AM
Joshua