I'm having a hard time grasping this code
if i DoCode:#define N 10 int a[N], i, sum = 0, *p = a; for (i = 0; i < N; i++) sum += p[i];
wouldn't I reference each element as *p[i] or to get address as &p[i]? Why is the dereference skipped? I would understand that p[i] in the example would be the address and not the actual value. Help me understand this.Code:a[10] = {1,2,3,4,5,6,7,8,9,10} int *p = a;