If you use a single array, you can initialize it like this and declare it directly like this:
Code: Select all
10 DIM A%(2)
20 A%() = 1, 2, 3
As far as I know it has to be initialized manually
Code: Select all
10 DIM A(2, 2)
20 A(0, 0) = 1 : A(0, 1) = 2 : A(0, 2) = 3
30 REM ETC....
when compared to modern programming languages.
C++ Example:
Code: Select all
int number[2][2] = {{1,2, 3}, {1, 2, 3}, {1, 2, 3}};
But is there a way to create a double array the same way as a single array?