Computer Science, asked by kareemrazak34, 22 days ago

What does fun2() do in general?
int fun(int x, int y)
{
if (y== 0) return 0;
return (x + fun(x, y-1));
}
int fun2(int a, int b)
{
if (b= 0) return 1;
return fun(a, fun2(a, b-1));
}​

Answers

Answered by sanasiju
2

Answer:

of a=0 it will print 0

if b= 0 it will print 0

the second return command doesn't execute

Explanation:

pls mark as BRAINLIEST I will follow and thank you

Similar questions