H
hyena
I have following code:
void free(double** a){
for(int i =0; i< 100;i++){
delete[] *(a+i);
}
}
double** t;
t= new double*[100];
for(int i =0; i< 100;i++){
*(t+i) = new double[100];
}
the idea is to create two dimensional array and use free() to free up the
memory, will this work?
void free(double** a){
for(int i =0; i< 100;i++){
delete[] *(a+i);
}
}
double** t;
t= new double*[100];
for(int i =0; i< 100;i++){
*(t+i) = new double[100];
}
the idea is to create two dimensional array and use free() to free up the
memory, will this work?