No, there's not such a thing in standard c++.



Technically, you are returning a pointer, not an array. And in this case, you're returning a pointer to a local variable, which leads to this...