+ 2
what happends if u uae two quotations
""Happy cat" is a happy cat" What would happen
3 Antworten
+ 11
# If you want, we have a solution to that. Using escape characters ;D
print("\"Happy cat\" is a happy cat")
+ 3
Generates an error in most languages. " " is interpreted as first string and " is a happy cat" as second. And the language won't understand 'Happy cat' in between and what to do with those strings.
+ 3
yes. As dev pointed out, escape characters can be used if u
you want the double quotes in the string. " alone marks the start or end of a string. \" means double quotes as a part of the string.