Address of local array and referance of local array?

we can’t return the address of local array but can we return the referance of local array and how?

make dynamic array and then return it
int * arr=new int[10000]{};
return arr;