Computer Science, asked by rupa98720, 1 month ago

Consider the following function:
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};=​

Answers

Answered by esvansh0710
2

Answer:

thanks for the points Xd

Answered by 12440anjira
1

Answer: 1.a[5]={1,2,3,4,5};

Similar questions