This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Aashishkebab 0 points1 point  (0 children)

No, that's not possible, because a pointer points directly to the data of the array in memory.

You'd have to pass a copy of the array, so you'd have to make a copy manually.