fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main() {
  5. const char* s1="Hello, ";
  6. const char* s2="World!";
  7.  
  8. char buf[50];
  9.  
  10. strcpy(buf, s1);
  11. strcat(buf, s2);
  12.  
  13. printf("%s\r\n", buf);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
Hello, World!