In computer terminology, we use the term character to refer to any one of the following:
• a digit from 0 to 9;
• an uppercase letter from A to Z;
• a lowercase letter from a to z;
• a special symbol like (, ), $, =, <, >, +, -, /, *, etc.
The following are commonly used terms:
letter – one of a to z or A to Z
lowercase letter – one of a to z
uppercase letter – one of A to Z
digit – one of 0,1,2,3,4,5,6,7,8,9
special character – any symbol except a letter or a digit
e.g. +, <, >, $, &, *, /, =
alphabetic – used to refer to a letter
numeric – used to refer to a digit
alphanumeric – used to refer to a letter or a digit
Characters are the basic building blocks used in writing programs;
we put characters together to form variables and constants;
we put variables, constants and special characters to form expressions such as (a + 2.5) * c;
we add special words such as if, else and while to form statements such as
if (a > 0) b = a + 2;
and we put statements together to form programs.