0
What is char
3 Respuestas
+ 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
0
char is character
0
Char is a datatype.Used to declare a character (a single alphabet).
Eg:char a;