C++ strings: taking string input, pointer to string, passing to function

If we want to join two strings or more, C++ has an inbuilt functionality to support this join. Combining or joining of two or more strings in order to form a result string is called a concatenation of strings. In the above code, We gave input of two strings as “google chrome” and “hr”. Now…