strcat if u wnt to use strcat then include string.h header file
To concatenate strings in PHP, you use the . (dot) character. For example: $str = "String1" . "String2";
a write the algorithm to concatenate two given string
That depends on the programming language. Most languages use the "+" sign, but a few use other signs. For example, PHP uses the dot.
Language dependent. In C, for example, there no string as such, but you can use function strcat to concatenate zero-terminated character-sequences.
strcat
There is a quite a lot of things you can do with files; some of them are: open, read, write, close, delete, copy, move, rename, concatenate, sort...
concatenate is the operation of joining two character strings end to end. For example, the strings "snow" and "ball" may be concatenated to give "snowball".
Strings are a type of variable in computer programming. Simply put, they contain multiple characters which are "strung" together to make a piece of text. "Test", "House", and "Hello World!" are all excellent examples of what might be contained in a string. As a result, strings are used to store and convey any textual information.
Same operator can be used for different purposes like + can be used for addition of two integers and used for concatenate strings.
#include#includevoid main(){char a[30],b[30];clrscr();printf("Enter the string a:");gets(a);printf("Enter the string b:");gets(b);printf("%s",strcat(a,b));getch();}
Copy one file, then append the other to the copy.
c strings are terminated by \0 character