0
character and string
Can ' also b a character or string if it is putted between " inverted commas or ' commas
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: "
+ 4
no problem buddy
just in case, just know you can do the same for characters
char c = ' \' '
0
thank you for a great answer
Hot today
Python — File Handling
2 Votes
Help me
0 Votes
What’s wrong?
2 Votes
Question is write a c program to print prime numbers up to n and print the largest number in array.
1 Votes
Achievements on Sololearn
1 Votes
How to draw in the console?
0 Votes