0
When programing a code which involves username and password, whats the best to use - char or string
cpp
3 Answers
+ 1
string
+ 1
thank you guys
0
Strings are for multiple letters. If you need faster (negligible in smaller programs) access to single-character values, chars are your friend.
For this, a string would be the most appropriate.