How can I create a program in c++ with a data type that can accept input of alphabets or is it only int data type that can code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I create a program in c++ with a data type that can accept input of alphabets or is it only int data type that can code?

C++ data type (alphabets)

21st Jan 2019, 8:07 AM
Nnegha Akachukwu
3 Answers
21st Jan 2019, 3:17 PM
Zen
Zen - avatar
+ 2
Char and/or string
21st Jan 2019, 8:47 AM
Mina
Mina - avatar
+ 1
U r running faster dan ur shadow Keep learning they'll reveal everything to u.. Use char for single alphabets (in single quotes) Nd string for multiple alphabets(in double quotes)
21st Jan 2019, 9:31 AM
Chimkaeme Ndu
Chimkaeme Ndu - avatar