...
In cases where the string is meant to be modified, use initialization instead of assignment. In this compliant solution, c is a modifiable char wchar_t array which has been initialized using the contents of the corresponding string literal.
...