edited by
1,017 views
0 votes
0 votes

Consider the two given functions:

int fun1(int x, int y)
{
if (y==0) return 0;
return (x+fun2(x, y-1));
}

int fun2(int x, int y)
{
if (x==0)
return y;
return fun2(x-1, x+y);
}



What will be the value returned by $\text{fun1}(4, 4)$ ____

edited by

2 Answers

Answer:

Related questions

1 votes
1 votes
2 answers
3
soujanyareddy13 asked Jan 29, 2021
590 views
Consider the following program. Assume that $x$ and $y$ are integers.f(x, y) { if (y != 0) return (x * f(x,y-1)); else return 1; }What is $f(6,3)?$$243$$729$$125$$216$
18 votes
18 votes
2 answers
4