Why do we need string variable when we have char variable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do we need string variable when we have char variable?

12th Feb 2019, 4:30 PM
Saurabh Mishra
Saurabh Mishra - avatar
2 Answers
+ 2
I'm pretty sure char only holds a single character, whereas a string can hold any number of characters.
12th Feb 2019, 4:40 PM
Chig Bungus
Chig Bungus - avatar
0
Right!!!
12th Feb 2019, 4:42 PM
Saurabh Mishra
Saurabh Mishra - avatar