double[][] ServicePoint = new double[10][9]; // <-- gives an error (1)
double[,] ServicePoint = new double[10,9]; // <-- ok (2)

What’s their difference? (1) yields an error, what’s the reason?

And

double d = new double[9]
ServicePoint[0] = d;

using (2) will prompt an error. Why?

5 s
5

Leave a Reply

Your email address will not be published. Required fields are marked *