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

}



No comments:

Post a Comment