fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. unsigned int a,b,c,d,(*p)[30][30][13];
  6. p=calloc(30,sizeof*p);
  7. if(!p)
  8. perror("calloc"),exit(1);
  9. for(a=0;a<30;a++)
  10. for(b=0;b<30;b++)
  11. for(c=0;c<30;c++)
  12. for(d=0;d<13;d++)
  13. p[a][b][c][d]=a*b*c*d;
  14.  
  15.  
  16. printf("%u %u",p[0][0][0][0],p[29][29][29][12]);
  17.  
  18. free(p);
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
0 292668