String concatenation

strcat

#include
#include
int main()
{
char str1[25]=”I LOVE”;
char str2[15]=”C “;
clrscr();
printf(“\n\nstr1 : %s\t\t\tstr2 : %s\n\n”,str1,str2);
printf(“\n\nstrcat(str1,str2) : %s\n\n”,strcat(str1,str2));
printf(“\n\nstr1 : %s\t\tstr2 : %s\n\n”,str1,str2);
getch();
return 0;
}

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *