Strcat in c

strcat() is used to merge two strings .the first character of the second string overwrites the null character of the first string .


strcat (s1,s2)

merges every thing from string2 to string 1

int main()
char s1[30]="codeskulls";
char s2[30]="website";
printf("Before merging :");
printf("\n str1 : %s \n str2: %s \n\n",s1,s2);
printf( "\nTarget string after strcat( ) = %s",s1);