What's mean this \" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What's mean this \"

\"

3rd Jun 2018, 6:26 PM
krishan Murari
krishan Murari - avatar
1 Answer
+ 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"); 
3rd Jun 2018, 6:38 PM
Rusty.Metal