in Programming in C
1,236 views
2 votes
2 votes

What will be output of the program?

int d=0;
int f(int a,int b){
    int c;
    d++;
    if(b==3)
    return a*a*a;
    else{
        c=f(a,b/3);
        return(c*c*c);
    }
}

int main(){
    printf("%d",f(4,81));
    return 0;
}

 

in Programming in C
by
1.2k views

4 Comments

how $4^{81}??$
0
0
Mam I wanna ask how without wraparound u are getting $4^{36}$
0
0
just simply run code in pen and paper
0
0

Please log in or register to answer this question.

Related questions