character and string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

character and string

Can ' also b a character or string if it is putted between " inverted commas or ' commas

13th Apr 2017, 3:44 PM
Mubarak Hussain
Mubarak Hussain - avatar
3 Answers
+ 7
" are called double quotes ' are called single quotes and i think you can, if you escape them using the escape character \ e.g. string quote = " \" "; cout << quote; this prints: "
13th Apr 2017, 3:47 PM
Edward
+ 4
no problem buddy just in case, just know you can do the same for characters char c = ' \' '
13th Apr 2017, 3:58 PM
Edward
0
thank you for a great answer
13th Apr 2017, 3:56 PM
Mubarak Hussain
Mubarak Hussain - avatar