// https://wokwi.com/projects/358030206673601537
void setup() {
Serial.begin(115200);
Serial.println("shanren!\n");
mainN();
}
void loop() {
}
int mainN()
{
const char *arr[] = {"abcd", "bbcd", "cbcd", "dbcd", "ebcd"};
printf("String array Elements are:\n");
for (int i = 0; i < 5; i++)
{
/* what are you trying for with these lines?
if (i == m) {
arr[i] = 1;
}
*/
Serial.println(arr[i]);
}
return 0;
}
/*
shnaren.ino: In function 'int mainN()':
shnaren.ino:20:61: error: too many initializers for 'const char []'
const char arr[] = {"abcd", "bbcd", "cbcd", "dbcd", "ebcd"};
*/