0

I can't get this '\'' when should i use it exactly ?

strings special things

18th May 2017, 5:12 PM
Mohammed Kamal
Mohammed Kamal - avatar
3 ответов
+ 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?"
27th May 2017, 8:51 PM
Mahith Bhima
Mahith Bhima - avatar
0
excuse me ☺ what is the meaning of escape character?
18th May 2017, 5:41 PM
Mohammed Kamal
Mohammed Kamal - avatar
0
thanks alot
27th May 2017, 11:01 PM
Mohammed Kamal
Mohammed Kamal - avatar