Work in Progress

Passing arrays into functions

You can pass an array into a function by reference, for example let's say we have two arrays like so:

int n,m; 
int A[n], B[m];

Then you can write a function declaration as follows:

void funcname(int *x, int *y){}

with a function call that looks like this:

funcname(A,B)

Recall that the names of the arrays are pointers to the base address of the array.