String Literals in Primary Expressions

A “string literal” is a character, wide character, or sequence of adjacent characters enclosed in double quotation marks. Since they are not variables, neither string literals nor any of their elements can be the left-hand operand in an assignment operation. The type of a string literal is an array of char (or an array of wchar_t for wide-string literals). Arrays in expressions are converted to pointers. See String Literals in Chapter 1 for more information about strings.