campus placement CoCubes Mock Test Programming and Data Structure Programming in C Function Recursion
Consider following C function.
int compute(int n)
{
static int temp = 0;
if(n!=0)
{
temp++;
compute(n/10);
}
return temp;
}
What will be the output of compute(1490)?1
1490
2
14
3
1
4
4