fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. void myfunction(char *q){
  5. memcpy(q, "Welcome to turing", 8);
  6. }
  7.  
  8. int main(void) {
  9.  
  10. char *p = malloc(8);
  11. myfunction(p);
  12. printf(p);
  13. return 0;
  14. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Welcome