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 rer (unsigned int n, unsigned int r) {
if (n > 0) return (n%r + rer (n/r, r));
else return 0;
}
What is the return value of the function rer when it is called as rer (513, 2)?1
9
2
8
3
5
4
2