New to arduino tables and arrays. attempting to use the weekday number (0,1,2,3,4,5,6) to derive the day name (e.g., use the 0 to get the name "Sunday"). Compile result is this error message: "expected identifier before '1' "
This line of code attempts to set element 10 of the dayname array to a string. Eelemt 10 does not exist, nor can you set a single char element to a string
char dayname[10] = 'Sunday ';
This is an an attempt to set element 10 to a multi character char but a char can only have one character so 2 errors
It can always be useful to share the solution so other people that encounter the same problem can learn from it.
I can see that you made an attempt to use code tags but it did not work out. One way to do it
Type ** **[code]** **
Paste your code after that
Type ** **[/code]** **
after the pasted code
Alternative if you're a mouse junk
Click the </> icon in the left top ( not: type </> ); it will put the above code tags in the post for you and next you can paste your code in between the tags.