GATE Computer Science (CS) 2011 Solved Paper

Show Para  Hide Para 
Question Numbers: 58-59
Consider the following recursive C function that takes two arguments
 unsigned int foo(unsigned int n, unsigned int r) {  
      if (n > 0) return (n%r) + foo (n/r, r));
       else return 0;
}
© examsnet.com
Question : 58
Total: 65
Go to Question: