void (int a[]) { a[5] = 3; // this is wrong? }
Can I do this so that the array that is passed in is modified?
Sorry for deleting, a bit new here…
I have another question which might answer my question:
If I have
void Test(int a) { } void Best(int &a) { }
are these two statements equivalent?
Test(a); Best(&a);
just alternate syntax for:
No array is passed, just a pointer. The original array is modified.
As for your second revision, given:
then