Character Arrays - Strings
Character Arrays - Strings
Character Arrays - Strings
- STRINGS
Strings
Definition
A string is an array of characters.
Any group of characters (except double quote sign) defined
between double quotation marks is a constant string.
Character strings are often used to build meaningful and
readable programs.
The common operations performed on strings are
Reading and writing strings
Combining strings together
Copying one string to another
Comparing strings to another
Extracting a portion of a string ..etc.
For example,
An array name could store at some point in a program either the
sequence "Hello" or the sequence "Merry Christmas", since both
are shorter than 20 characters.