+ 1
How to print character '\' ?
try it but failed. anyone can do that? i mean character not string. see my code below : https://code.sololearn.com/csdr9DDHesBE/?ref=app
4 Réponses
+ 20
c(92) prints ' \ '.
+ 3
Use single quote instead of double quotes.
edited:
like this:
void c(char a){cout << a;}
calle it like this:
c('\\');
+ 1
@Dayve
You right, thank you so much.
0
thanks @Ulisses Cruz