0
1.8kviews
Consider the following recursive function that takes two arguments
written 8.6 years ago by | • modified 8.6 years ago |
Int foo (int n. int r)
{
If(n>0)
Return((n%r)+foo(n/r,r));
Else
Return 0;
}
What is the return value of the function foo when it is called as foo (65,2)? -
Marks: 3 M
Year: Dec 2014
ADD COMMENT
EDIT
1 Answer