Showing posts with label WAP TO CONCATENATE TWO STRINGS. Show all posts
Showing posts with label WAP TO CONCATENATE TWO STRINGS. Show all posts

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 ();
}