int Array(double ***Arr,int n) { double **p; int i; p=(double **)malloc(n*sizeof(double*)); if(!p) return 0; for(i=0;i<n;i++) { p[i]=(double*)malloc(n*sizeof(double)); if(!p[i]) return 0; } *Arr=p; return 1; }