How to correctly initialize a two-dimensional array? (Select all correct ways)
Explanation
int k[][] = new int [2][3], int[][] k = new int [2][3], int k[,] = new int [2,3] - incorrect definitions;
int[][] k = new int[2][] - definition of a staged array, not initialization

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback