### const_strings

Controls the const-ness of string literals.

##### Syntax

#pragma const_strings [ on | off | reset ]

##### Targets

All platforms.

##### 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.

This pragma does not correspond to any setting . To check this setting, use __option (const_strings), this pragma is on when compiling C++ source code; off when compiling C source code.