fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef int * TYPE;
  5.  
  6. int f(TYPE *x)
  7. {
  8. int *ret = (int*)malloc(sizeof(int[2]));
  9. return ret ? *x = ret, 0 : 1;
  10. }
  11.  
  12. int main()
  13. {
  14. TYPE a;
  15. printf("%d\n", f(&a));
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2244KB
stdin
Standard input is empty
stdout
0