+ 1
What's mean this \"
\"
2 ответов
+ 6
Short answer:
\" is translated as just " by the compiler inside a string. Using double quotes without escaping would count as end of string instead of a actual double quote character itself.
Long answer:
An escape sequence is a sequence of characters that does not represent itself when used inside a character or string literal, but is translated into another character or a sequence of characters that may be difficult or impossible to represent directly.
In most languages, all escape sequences consist of two or more characters, the first of which is the backslash, \ (called the "Escape character");