+ 2

char type?

Why i need C# char type? Only single caracter looks so useless. . .

22nd Feb 2018, 1:04 PM
Chocolatte
Chocolatte - avatar
2 Answers
+ 5
Here are some that may please you: '\n', '\t', '\r', etc. Also, '\0' is null character, one of the most important character!
22nd Feb 2018, 2:33 PM
777
777 - avatar
+ 1
What if u want only one input for your program like say- Enter 'y' to confirm or 'n' to cancel. Eg. They are mainly used for delete operation with linux terminal. It want user to be sure that user is going to delete that file with his consent.
22nd Feb 2018, 2:31 PM
Sylar