Learn in the textbookData Types
DefinitionThe character type (文字型) is a data type whose value is a single character, such as a letter, digit, symbol or kana.
ExplanationInside the computer, each character is represented by a number called a character code. A value made of several characters in a row is handled as a string; pseudo-language and similar notations give it a separate type, the string type.
AnalogyIt is like a single piece of movable type. Even a piece shaped like a digit is a symbol for printing, not a number for calculating.
Memory hookMany programming languages abbreviate "character" to char in code.