Question:What would be printed on the standard output as a result of the following code snippet?
int Recur(int num)
{
if(num==1 || num==0)
return 1;
if(num%2==0)
return Recur(num/2)+2;
else
return Recur(num-1)+3;
}

int main()
{
        int a=9;
        printf("%d\n", Recur(a));
        return 0;
}
 

A 10 

B 9 

C 11 

D 8 

E None 

+ Answer
+ Report
Total Preview: 3214

Copyright © 2024. Powered by Intellect Software Ltd