+ 2

what happends if u uae two quotations

""Happy cat" is a happy cat" What would happen

27th Sep 2017, 2:07 PM
James Hays
James Hays - avatar
3 Answers
+ 11
# If you want, we have a solution to that. Using escape characters ;D print("\"Happy cat\" is a happy cat")
27th Sep 2017, 2:12 PM
Dev
Dev - avatar
+ 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.
27th Sep 2017, 2:10 PM
Mayur Garg
Mayur Garg - avatar
+ 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.
27th Sep 2017, 2:15 PM
Mayur Garg
Mayur Garg - avatar