New course! Every coder should learn Generative AI!
Try a free lesson0
How to define a variable that holds letters?
2 Answers
0
For one character you can use char:
char ch = 'a';
For multiple characters you can use string:
std::string str = "abc";
0
thank you for the help