![]() |
VOOZH | about |
String concatenation is the process of joining two strings end-to-end to form a single string.
Examples
Input: s1 = "Hello", s2 = "World"
Output: "HelloWorld"
Explanation: Joining "Hello" and "World" results in "HelloWorld".Input: s1 = "Good", s2 = "Morning"
Output: "GoodMorning"
Explanation: Joining "Good" and "Morning" results in "GoodMorning"
Table of Content
Almost all languages support + operator to concatenate two strings. In C, we have a library function strcat() for the same purpose.
Hello, World!
Hello, World!