PPL: Character Data Type

March 21, 2019 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp
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