'C char* + char* concatenation

I have char* str1 and char* str2

I wanna concatenate like this res = str1 + str2

strcat(str1, str2) change value of str1, it is not what i need

How to get this result?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source