Sunday, 7 December 2014

#include<constream.h>
#include<string.h>
void main()
{
char a[20],b[20],x[20];
clrscr();
cout<<"enter a string";
cin>>a;
cout<<"enter b string";
cin>>b;
cout<<"the string is"<<strcat(a,b)<<"\n"<<strcpy(b,a)<<"\n"<<strlen(a)<<"\n"<<strlen(b);
getch();
}