What is char | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is char

15th Nov 2016, 10:07 AM
Creator VR
Creator VR - avatar
3 Answers
+ 1
char is a data type. char a; This declaration allots variable a with 1 byte. One can store any of the character in this variable. Even new lines, null, tab space etc. char b='a'; cout<<b; Output: a
15th Nov 2016, 10:28 AM
Megatron
Megatron - avatar
0
char is character
15th Nov 2016, 10:09 AM
Rabia Iqbal
Rabia Iqbal - avatar
0
Char is a datatype.Used to declare a character (a single alphabet). Eg:char a;
15th Nov 2016, 11:27 AM
Shazib Khattal