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?