394 views
0 votes
0 votes

Value of following function when x=3 and y=5

int f(int x, int y)
{
    if(x==0 && y>=0) return y+1;
    else if(x>0 && y==0)
    return(x-1,1);
    else if(x>0 && y>0)
    return(f(x-1),f(x,y-1));
}

value return will be _________________

Please log in or register to answer this question.

Related questions

2 votes
2 votes
1 answer
2
Hrithik Vashishtha asked Jul 4, 2022
398 views
#include <stdio.h int main () { int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i] + 1; i++; } i ; for (j = 7; j 4; j ) { int i = j/2; ...
3 votes
3 votes
5 answers
3
dragonball asked Aug 27, 2017
1,720 views
#include<stdio.h>int f(int a){ a 20 ? return 10: return 20;}int main(){int b=fun(20);return 0;}what will be the output of this program ?
0 votes
0 votes
1 answer
4
Karthik Akula asked Oct 29, 2016
4,121 views
what is the output for the below program ?main() { float x=1/2; float y=1/2.0; printf("%f, %f", x,y); }A) 0.500000, 0.500000B) 0.500000, 0.000000C) 0.000000, 0.000000D) 0...