fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. char str1[30] = "My Birthday ";
  5. char str2[30] = "18 August 1991";
  6. char str3[30];
  7. strcpy(str3, str1);
  8. strcat(str1, str2);
  9. printf("str1 = %s\n", str1);
  10. printf("str3 = %s\n", str3);
  11. return(0);
  12. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
str1 = My Birthday 18 August 1991
str3 = My Birthday