Hi there:
Could anyone please tell me how to send an array index to a method by reference? I want to do something like this:
void foo1()
{
int[] arr = { 1,2,3,4,5 };
foo2( arr + 1 ); //It gives me a compile error here
}
void foo2( int[] arr )
{
arr[0] ++;
}
In C++ I'd simply call foo2 from foo1 like this:
foo2( arr + 1 );
OR
foo2( &arr[ 1 ] );
Any help would be appreciated.

