Menu

(Solved) : Write Two Functions Confused Second Function Following Function Description Wrote Power Fu Q37283101 . . .

I have to write two functions. I am confused about the secondfunction. following is the function description. I have wrote thepower function if someone can help

with the other function. Its in C++ language

• power: Returns x i as an integer. No math library function isused for computation.

• fillarray1: Inserts x i into i th position (0 ≤ i ≤ n − 1) inthe array using power function. n is the size of the array.

int power(int x, int i)

returns x^i;

void fillarray(int x, int a[], int n)

Expert Answer


Answer to I have to write two functions. I am confused about the second function. following is the function description. I have wr…

OR