Apparently I will die without understanding how chars work but I am trying. Part of what I don't understand here is where the const designation is coming from. The supposed-to-be-helpful carat is pointing to a close parenthesis. So which variable is magically a const when I've declared neither as such? (At least not on purpose).
Thank you both for your replies, which do make things clearer for me. But what about the "const" in the error message. Are char arrays constant by default? It feels misleading to me when I haven't declared tmp as const char yet the error indicates a const char is involved here.