0

I hope that these code express my question more clearly.

double xxxx(const double* const array){
//...
}
int main(){
double* array = new double [5];
xxxx(array);
}

Is it actually create a new const array in the stack and heap by the input of the function?

braaterAfrikaaner
  • 1,072
  • 10
  • 20

0 Answers0