char operator ( int index )
Returns the character at a given position in
index – zero-based index
of a character in the string. If value of index is out of
string data range the runtime error will occure.
You can think of a
string as an array of characters. The subscript ([
]) operator returns a single character specified by the
zero-based index in index.
The following example demonstrates the use of operator
string String = "Hello!"
Output of the example script: