Consider the following C code: .

#include < stdio.h >

int temp = 0;

int fun(int x, int y) {
    int z;
    temp++;

    if (y == 3) return(x * x * x);
    else {
        z = fun(x, y / 3);
        return(z * z * z);
    }
}

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

What will be the output of the above code ?

1
3
2
4
3
5
4
6

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation