I was going through an online lecture and I saw this function to sum an array
int arraySum(int array[], const int n)
{
int sum = 0, *ptr;
int *const arrayEnd = array + n;
...
}
I've not seen an array added to an integer before. If n is the size of the array, does array + n mean that arrayEnd is assigned a value of the last element in array[] or does it mean something else like the address of that element?