Question:Which are correct jagged array declaration in C#? 

A int[][] matrix=new int[3][]; 

B int[][] matrix={ new int[]{0,1,2}, new int[]{3,4,5}, new int[]{6,7,8} }; 

C int[,] matrix=new int[,] 

D var matrix=new int[][]{ new int[]{0,1,2}, new int[]{3,4,5}, new int[]{6,7,8} }; 

+ Answer
+ Report
Total Preview: 1031

Copyright © 2024. Powered by Intellect Software Ltd