I wish to define a list of months names and access it when printing a report.
When using Python- it is easy
months=['Jan','Feb','Mar'] ,and months[i] yields Jan.
Since I'm new to Arduino - I try to define and access this list without any success.Array was defined as follows:
const char months []= {'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'};
for (int i=0; i<=11; i++) {
Serial.print(months[i]);
}
Tries:
I was looking for help under Arrays in arduinoArduino documentation didn't give, as far as I found, any explanation for such case., but arrays of int
Appreciate any help.