PDF Content
PDF Content
String
– String is a simple array of chars (characters)
1
Data Structures and Algorithms
9
String Operation
• Concatenation: String1//String2
e.g.- ‘To be or not to be’// ‘, this is the question.’= To be or not to be, this is the
question
String Operation
• Word Processing-
– Pattern Matching:
Pattern matching is the problem of deciding whether or not a given string
pattern P appears in a text.
Widely used in word processing.