SyntaxFix
Write A Post
Hire A Developer
Questions
Here, Erik explains every way pass an array by reference: https://stackoverflow.com/a/5724184/5090928.
Similarly, you can create an array reference variable like so:
int arr1[] = {1, 2, 3, 4, 5}; int(&arr2)[5] = arr1;