CHARACTER DATA TYPE
Character data type allows a variable to store only one character (letter, number, etc.).
char keyword is used to refer character data type.
It is a primitive data type.
For example-
char gender = ‘m’;
We can’t store more than one character using char data type.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion