0
instances for double quotes strings
how some instances for double quotes strings?
7 odpowiedzi
+ 2
i still did not understand about double strings quotes, could you give me some examples please, ...thanks
+ 2
The (\) front slash is used to escape "" in programming languages.
Keep coding 🙏🏾 Happy coding 😉
+ 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
+ 1
sorry i was a little confuse by your question, i thought you already knew what language that i learned, i am learning python
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
0
Which language Kenzhin Takezhi ?
Which part of it that you don't understand?
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 👍