0

When programing a code which involves username and password, whats the best to use - char or string

cpp

1st Nov 2017, 11:08 PM
Curls
Curls - avatar
3 Answers
+ 1
string
2nd Nov 2017, 12:05 AM
Daniel
Daniel - avatar
+ 1
thank you guys
2nd Nov 2017, 6:37 AM
Curls
Curls - avatar
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.
2nd Nov 2017, 3:15 AM
LunarCoffee
LunarCoffee - avatar