Consider following C function which computes the exponent of a number i.e ab.
int expo(int a, int b)
{
if(b==0)
return 1;
else
return R;
}
Choose correct expression for R.
1
expo(a-1, b–1)
2
expo(a-1, b)
3
(a* expo(a, b–1))
4
(a* expo(a-1, b))
Consider following C function which computes the exponent of a number i.e ab.
int expo(int a, int b)
{
if(b==0)
return 1;
else
return R;
}
Choose correct expression for R.