#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();
}
Sunday, 7 December 2014
Program to perform various string operations such as string concatenation(strcat), string length(strlen) and string copy(strcpy)
Posted by Madan
Posted on 13:37





