String Concatenation (Operation)
- Definition: Concatenation is a binary operation on strings where two strings are joined end-to-end.
- Notation:
- Concatenation (): For strings , the concatenation is written as , meaning the string formed by appending to .
- Example:
- Exponentiation of a string: For and :
- Concatenation (): For strings , the concatenation is written as , meaning the string formed by appending to .
Example:
- Properties:
- Associative: .
- Identity Element: The empty string , since .
- Not commutative: In general,
- Example:
- “ab” concatenated with “cd” gives “abcd”.