fork download
  1. #include <stdio.h>
  2.  
  3. int *gp;
  4.  
  5. void func(int **p)
  6. {
  7. int i = 55;
  8. *p = &i;
  9. }
  10.  
  11. int main(void)
  12. {
  13. int **p;
  14. p = &gp;
  15. func(&*p);
  16.  
  17. printf("gp:%d\n", *gp);
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 4268KB
stdin
Standard input is empty
stdout
gp:0