Array objects, adjusted parameters and portable sizeof

Give the output and explain the types of a in main, p in main and a in inspect. Explain why sizeof a / sizeof a[0] counts elements in main but would not count elements inside inspect. Is an array assignable with a = p? State the relationship between a + 1 and &a[1] without assuming any pointer or int size.

#include <stdio.h>
static void inspect(int a[], size_t n) {
    a[1] = a[0] + (int)n;
}
int main(void) {
    int a[4] = {2, 4, 6, 8};
    int *p = a;
    size_t n = sizeof a / sizeof a[0];
    inspect(a, n);
    printf("%zu %d %d\n", n, *(p + 1), a[3]);
    return 0;
}

