How to correctly initialize a two-dimensional array? (Select all correct ways)
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
Keep exploring
C# quizzes
Sign Up Now
or Subscribe for future quizzes