Strcat() function concatenates or glues one string to another. - C String

C examples for String:String Function

Description

Strcat() function concatenates or glues one string to another.

Demo Code

#include <stdio.h> 
#include <string.h> 

int main()/*from  www  .j a  va  2  s . c  o m*/
{ 
   char str1[40] = "test test test te"; 
   char str2[] = "aaaaaaaaaaaaaaaaaaaaaa"; 
   printf("\n%s\n", strcat(str1, str2)); 
}

Result


Related Tutorials