The type of a narrow string literal is array of char
and the type of a wide string literal is array of wchar_t
. However, string literals (of both types) are notionally constant and should consequently be protected by const
qualification. This recommendation is a specialization of DCL00-AC. Const-qualify immutable objects and also supports rule STR30-C. Do not attempt to modify string literals.
...