Consider the following recursive C function that takes two arguments

unsigned int recursion(unsigned int n, unsigned r) {
if(n>0) return(n%r + recursion(n/r, r));
return 0;
}

What is the return value of the function recursion(1025,2) when it is called with recursion

1
1
2
2
3
10
4
11

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation