0

Why (\")

17th Jul 2018, 6:13 AM
HoĂ ng Nguyễn
HoĂ ng Nguyễn - avatar
3 Answers
+ 4
Strings are written in quotation marks => one indicates starting of string and another one for end of string. Suppose you want to use " in your string for example printf("Nice to "help" you"); Compiler will understand that you want to end string and will end it at beggining of help. So to include quotation mark in your string you have to use special character called back slash (\). It will tell compiler to consider it as special case and not end string , just add it to string. printf("Nice to \"help\" you"); Hope this explanation helpsâ˜șâ˜ș.
17th Jul 2018, 6:42 AM
Meet Mehta
Meet Mehta - avatar
+ 2
So that you can print " Otherwise this would mark the end of your string and won't lead to the desired result
17th Jul 2018, 6:21 AM
Matthias
Matthias - avatar
0
thank you very much
17th Jul 2018, 6:23 AM
HoĂ ng Nguyễn
HoĂ ng Nguyễn - avatar