I want to create a 2d array of strings, probably numbers. They will only be accessed in full, no need for access to individual characters from the strings.
There will be 40 of them and they will all be 15 characters in length.
I seem to be able to create them using char* hist[20][15] = {"100000000000000","200000000000000" ,"300000000000000","400000000000000" ,"500000000000000","600000000000000" ,"700000000000000","800000000000000" ,"900000000000000","100000000000000" ,"110000000000000","120000000000000" ,"130000000000000","140000000000000" ,"150000000000000","160000000000000" ,"170000000000000","180000000000000" ,"190000000000000","200000000000000" };
I am having trouble in accessing them them.
If I Serial.println(hist[12]); It reports an error.
Actually I remember that I should actually create the array like this maybe: char* hist[] = {"100000000000000","200000000000000" ,"300000000000000","400000000000000" ,"500000000000000","600000000000000" ,"700000000000000","800000000000000" ,"900000000000000","100000000000000" ,"110000000000000","120000000000000" ,"130000000000000","140000000000000" ,"150000000000000","160000000000000" ,"170000000000000","180000000000000" ,"190000000000000","200000000000000" };
Then I can access them with Serial.println(hist[12]);
Will this array be updatable during program runtime?
Is this type of array of strings bad practice?