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