+ 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

14th May 2017, 4:04 PM
Setiawan Next
Setiawan Next - avatar
4 Réponses
+ 20
c(92) prints ' \ '.
14th May 2017, 4:19 PM
Dev
Dev - avatar
+ 3
Use single quote instead of double quotes. edited: like this: void c(char a){cout << a;} calle it like this: c('\\');
14th May 2017, 4:20 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
@Dayve You right, thank you so much.
14th May 2017, 4:21 PM
Setiawan Next
Setiawan Next - avatar
0
thanks @Ulisses Cruz
14th May 2017, 4:26 PM
Setiawan Next
Setiawan Next - avatar