fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main(void)
  4. {
  5. char str1[40];
  6. char str2[40];
  7. char str3[40];
  8. char work[200];
  9.  
  10. strcpy(str1, "Let's");
  11. strcpy(str2, "study");
  12. strcpy(str3, "programming.");
  13. printf("%s %s %s\n", str1, str2, str3);
  14.  
  15. strcat(work, str1);
  16. strcat(work, " ");
  17. strcat(work, str2);
  18. strcat(work, " ");
  19. strcat(work, str3);
  20. printf("%s\n", work);
  21.  
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
Let's study programming.
�ۜ��Let's study programming.