C++ problem for beginner

Can you help me out with this problem?

void func(int a[5])
{
int i;
for(i = 1; i < 4; i++)
a[i] = a[i-1] – a[i] + a[i+1];
}

What would be the contents of array a after executing this function, if before passing array a is defined as below: (write the elements separated by space i.e 1 2 3 4 5)

  1. a[5] = {1, 2, 3, 4, 5};
  2. a[5] = {5, 4, 3, 2, 1};
  3. a[5] = {5, 65, 45, 2, 25};