sketch_dec10a:1: error: too many initializers for 'char []'
char myArray[] = {"hello1","hello2","hello3"};
^
exit status 1
too many initializers for 'char []'
Perhaps you meant:
// Array of three character pointers:
char *myArray[] = {"hello1","hello2","hello3"};
or
// Array of three character arrays:
char myArray[7][] = {"hello1","hello2","hello3"};
but when i want to write the second place in the array:
Serial.write(myArray[2]);
That is the THIRD place in the array. The index always starts at 0 so 0, 1, 2... third place.
I want to set a pointer of the array place and give the name out.