Professional Documents
Culture Documents
Data Structures: Lecture 2: String
Data Structures: Lecture 2: String
Lecture 2: String
String
• Strings are sequence of characters
representing a piece of text.
"This is a string”
C++ provides following two types of
string representations:
3
The C-style character string
• This string is actually a one-dimensional array of
characters which is terminated by a NULL character '\0'.