G'day!
If I have a function that takes an array of ints as an argument, and then inside this function, send the same array to another function, will it still be able to edit the array values ββand execute them at the main level, and not at the function level ?
i.e
int main(int argc, char *argv[]) { int A[50]; functionB(A); }
where function B looks like this:
void functionB(int A[]) { functionC(A); }
and the function C is the one that actually mutates the values ββinside A [].
Will the main look of the modified array or original be A []?
Thanks!
c immutability arrays pointers mutability
James adams
source share