Difference between revisions of "Character"
esse quam videri
(→External Links) |
|||
Line 1: | Line 1: | ||
=Definition= | =Definition= | ||
+ | A Character (or Char as used in code) is a 16-bit, Unicode character. | ||
=Relevance= | =Relevance= | ||
+ | Characters are used to make up strings. | ||
=Explanation= | =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= | =Resources= | ||
+ | |||
+ | |||
== See also == | == See also == | ||
Revision as of 18:08, 10 July 2019
Contents
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 (' ').