fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void procedure(int **t){
  5. *t = malloc(4*sizeof(int));
  6.  
  7. (*t)[3] = 4;
  8. }
  9.  
  10.  
  11. int main()
  12. {
  13. int *var = NULL;
  14.  
  15. procedure(&var);
  16.  
  17. printf("%d\n\n", var[3]);
  18. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
4