Character

esse quam videri
Revision as of 18:08, 10 July 2019 by Pedro (talk | contribs)
Jump to: navigation, search

Definition

A Character (or Char as used in code) is a 16-bit, Unicode character.

Relevance

Characters are used to make up strings.

Explanation

If you think of the word "Car", it is comprised of 3 characters: 'C', 'a' and 'r'. Note that a space is still a character. Thus, the word "Race Car" is comprised of 8 characters: 'R', 'a', 'c', 'e', ' ', 'C', 'a' and 'r'.

Another note is that while strings use double quotes (" ") to specify a value, characters use single quotes (' ').

Example

Resources

See also

Notes

External Links