I want to append two strings. I used the following command:
new_str = strcat(str1, str2);
This command changes the value of str1
str1
do the following:
strcat(new_str,str1); strcat(new_str,str2);