0

Matrix of jagged array C#

How can I initialize a jagged matrix of arrays? int[,][] jagged=new int[2,2][]; I tried: int[,][] jagged={{{7,8,6,5},{6,7,5}},{{6,6,9},{7,2,3,6,5}}};

21st Apr 2017, 1:54 PM
sylviur
sylviur - avatar
1 Resposta
0
I think I got this int[,][] jagged=new int[,][] { { new int[]{2,3,5,8}, new int[]{2,3,6,9,8} }, { new int[]{2,8}, new int[]{2,3,6,9,8,6} } };
21st Apr 2017, 3:40 PM
sylviur
sylviur - avatar