const_strings

Controls the const -ness of character string literals.

Syntax
#pragma const_strings [ on | off | reset ]
  
Remarks

If you enable this pragma, the type of string literals is an array const char[n] , or const wchar_t[n] for wide strings, where n is the length of the string literal plus 1 for a terminating NUL character. Otherwise, the type char[n] or wchar_t[n] is used.

By default, this pragma is on when compiling C++ source code and off when compiling C source code.

Related information
asmpoundcomment
asmsemicolcomment
dollar_identifiers
gcc_extensions
mark
mpwc_newline
mpwc_relax
multibyteaware
multibyteaware_preserve_literals
text_encoding
trigraphs
unsigned_char