/* understand the strcat() */
main()
{
str1[25],str2[20];
printf("Enter the first string");
gets(str1);
printf("\nEnter the second string");
gets(str2);
strcat(str1,str2);
printf("\nThe first string=%s \t and second string=%s \n",str1,str2);
strcat(str1,"newIndia");
printf("After now first string =%s",str1);
0;
}
|