Given the following code. Show the dry run/ working .
int fun(int a, int b)
{
if(b == 0)
return 0;
if(b % 2 == 0)
return fun(a + a, b/2);
return fun(a + a, b/2) + a;
}
Answers
Answered by
0
Answer:
so sorry I can't understand your question
please write it in a proper manner
Similar questions
History,
5 months ago
Math,
5 months ago
Social Sciences,
5 months ago
Social Sciences,
10 months ago
Math,
1 year ago