Question:What will be printed on the standard output as a result of the following code snippet?
int funr(int x, int y)
{
        if(x <= 0)
        {
                   return y;
        }
        else
        {
                return (1+funr(x-1,y));
        }
}

void main()
{
    printf("%d",funr(2,3));
}
 

A 2 

B 3 

C 5 

D 6 

E 9 

+ Answer
+ Report
Total Preview: 570

Copyright © 2024. Powered by Intellect Software Ltd