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