I am really confused about escape strings can anyone explain please? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am really confused about escape strings can anyone explain please?

1st Jan 2017, 3:31 PM
Roxie
1 Answer
+ 2
they are special strings created to don't be read by the compiler... so if you want to have a string like this mystring= "Hello "world""; with world in double quotes, you need a escape string, to let it know that you want it inside the text, and not like a part of the code.
1st Jan 2017, 4:14 PM
Nahuel
Nahuel - avatar