fork download
  1. #include<stdio.h>
  2. void copyString(char *b,char *a){
  3. while(*a != '\0'){
  4. *b=*a;
  5. a++;
  6. b++;
  7. }
  8. *b='\0';
  9. }
  10. int main()
  11. {
  12. char a[50],b[50];
  13. scanf("%s", a);
  14. copyString(b,a);
  15. printf("%s",b);
  16. }
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
Standard output is empty