Prev Next
- strcat( ) function in C language concatenates two given strings. It concatenates source string at the end of destination string. Syntax for strcat( ) function is given below.
char * strcat ( char * destination, const char * source );
- Example :
strcat ( str2, str1 ); – str1 is concatenated at the end of str2.
strcat ( str1, str2 ); – str2 is concatenated at the end of str1.
……
- As you know, each string in C is ended up with null character (‘