engineering recuitment GATE CSE 2023-24 Test Series Programming and Data Structure Programming in C Function Recursion
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