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, August 28, 2007

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

}