0
I can't get this '\'' when should i use it exactly ?
strings special things
4 Answers
+ 1
When you want to include a double quotation mark(or single quotation mark) in a string,
suppose you want to declare a string: how to include " in a string? , if you declare it like this,
question=" how to include " in a string?"
it throws an error as the double quotation mark " in the middle is breaking the string there.
So to make " part of the string you have to use (backslash) \" in the string like this,
question=" how to include \" in a string?"
0
excuse me âș what is the meaning of escape character?
0
thanks alot