Programming Tips - gcc: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]

Date: 2021nov1 Language: C/C++ Q. gcc: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] A. Change:
char *mystring = "hello";
To:
const char *mystring = "hello";
Add a `const`. It makes since since the quoted string is a constant.