Receiving the following error:
invalid conversion from 'const char*' to 'char'
Initializing as ( prior to setup() and loop() ):
char name[12] = " ";
Later in my code, within loop():
name = "Hi Bob!";
What am I doing wrong?
Thanks!!!
Receiving the following error:
invalid conversion from 'const char*' to 'char'
Initializing as ( prior to setup() and loop() ):
char name[12] = " ";
Later in my code, within loop():
name = "Hi Bob!";
What am I doing wrong?
Thanks!!!
You can't assign a string like that in 'C':name = "Hi Bob!";
You could use strcpy:
strcpy (name, "Hi Bob!");
Thank you thank you thank you!
;D