I think it would be good to add some information / examples about multi dimension arrays
to the reference page about Arrays.
Here is one example which I found:
int test[2][3] = {{1,2,3},{3,4,5}} ;
I think it would be good to add some information / examples about multi dimension arrays
to the reference page about Arrays.
Here is one example which I found:
int test[2][3] = {{1,2,3},{3,4,5}} ;
Also an other useful example I would add (for dynamic size of an array)
This code is wrong:
byte arraySize = 10;
int myArray[arraySize]; // ERROR: array bound is not an integer constant
Instead do this:
If you just want to easily change the size of the array at compile time you could do this:
#define arraySize 10
int myArray[arraySize];
Both code examples (bad and good) I would add to the array page, too.