I got a problem in C# with the 2D array initialization. My code is like this....
i got so many errors.Is there any problem with this code?
Code:
int[,] x= new int[,]{{1,2,3,4},{5,,6,7,8}};
MessageBox.Show("total:"+x.Length.ToString());
MessageBox.Show("rows:"+x.GetLength(0).ToString());
MessageBox.Show("cols:"+x.GetLength(1).ToString());
Comment