0

instances for double quotes strings

how some instances for double quotes strings?

20th Dec 2019, 2:03 AM
Kenzhin Takezhi
7 Antworten
+ 2
i still did not understand about double strings quotes, could you give me some examples please, ...thanks
20th Dec 2019, 3:20 AM
Kenzhin Takezhi
+ 2
The (\) front slash is used to escape "" in programming languages. Keep coding 🙏🏾 Happy coding 😉
20th Dec 2019, 7:00 AM
Alfred Juma
Alfred Juma - avatar
+ 1
in my course i was given a test, i wa order to complete the code to create a string containing a double quote? i dont understand about this question
20th Dec 2019, 3:35 AM
Kenzhin Takezhi
+ 1
sorry i was a little confuse by your question, i thought you already knew what language that i learned, i am learning python
20th Dec 2019, 4:16 AM
Kenzhin Takezhi
0
Hello Kenzhin Takezhi , I'm sorry but your question is hard to understand. Can you elaborate some more on this thought? and please specify a relevant language in your question tags, so we can have clarity on the context. For future reference, please follow this guide for posting a question https://www.sololearn.com/Discuss/333866/?ref=app
20th Dec 2019, 3:16 AM
Ipang
0
Which language Kenzhin Takezhi ? Which part of it that you don't understand?
20th Dec 2019, 3:25 AM
Ipang
0
Well, you still didn't tell me which language or course that you are currently learning. We could've sorted this out earlier if you have told me. I can't see which course you are taking even in your profile, so I don't know. Well, anyways, if you want to put a double quote in a string you need to "escape" the double quote with a backslash character '\' For example: * C char my_string[] = "This is such a \"great\" coffee"; * C++ std::string my_string = "This is such a \"great\" coffee"; * Java String my_string = "This is such a \"great\" coffee"; * PHP $my_string = "This is such a \"great\" coffee"; * Python my_string = "This is such a \"great\" coffee" Or my_string = 'This is such a "great" coffee' * Javascript var my_string = "This is such a \"great\" coffee"; I suggest you to take a step back and review the lesson again. Because answer to the quizzes are there in the lesson 👍
20th Dec 2019, 3:52 AM
Ipang