
(1) A string is nothing but a sequence of char-
acters. They are declared as a character
array. Each element of the string occupies
a byte in the memory. Every string is ter-
minated by a null character.
(2) To make the string manipulation easy, the
ANSI committee added a new class called
string. It allows us to define objects of
a string type, and they can be used as a
built-in data type. The string class is con-
sidered another container class and not a
part of STL (standard template library).
(3) Two string objects can be concatenated us-
ing overloaded + operator. The overloaded
+= operator appends one string to the end
of another ...