Tuesday, January 4, 2011

CONCATENATE TWO STRINGS

WAP TO CONCATENATE TWO STRINGS
void main ()
{
char *str,*str1;
clrscr ();
printf("Enter your name: ");
gets (str);
str1="jeet";
strcat(str,str1);
printf("\n %s",str);
getch ();
}


No comments:

Post a Comment