5. Assume that C function power_of_two(n) returns 1 if n is a power of two and 0 otherwise.
What is the return value when calling w(6,3), where function w is defined as follows. (20%)
int w(int n, int k)
{
int i = 0, j = 1;
if (k == 1) {
if (power_of_two(n))
return 1;
else
return 0;
};
while (n – j > 0) {
i += w(n – j, k - 1);
j *= 2;
};
return i;
};