fork download
  1. #include<stdio.h>
  2. #include<malloc.h>
  3. int main()
  4. {
  5. char *p,*q;
  6. p=(char *)malloc(25);
  7. q=(char*) malloc(25);
  8. strcpy(p,"amazon" );
  9. strcpy(q,"hyd\n");
  10. strcat(p,q);
  11. printf("%s",p);
  12. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
amazonhyd