fork download
  1. //gcc 7.4.0
  2. // Online C compiler to run C program online
  3. #include <stdio.h>
  4. #include <string.h>
  5. void z(char** t);
  6. int main() {
  7. char x[] = "hello world";
  8. char* y = x;
  9. z(&y);
  10. printf("%s",y);
  11.  
  12. return 0;
  13. }
  14.  
  15. void z(char** t){
  16. *t = strchr(*t, ' ');
  17.  
  18. }
  19.  
  20.  
  21.  
Success #stdin #stdout 0.01s 5520KB
stdin
Standard input is empty
stdout
 world