fork download
  1. #include <stdio.h>
  2. #include<string.h>
  3. int main(void) {
  4. // your code goes here
  5. char str[20];
  6. str[20]= "Hello world";
  7. char name[20];
  8. strcpy(name,str);
  9. printf("%s",name);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
Standard output is empty