Consider the function in C code:

void Cal(int a, int b) {
    if (b != 1) {
        if (a != 1) {
            printf("*");
            Cal(a / 2, b);
        } else {
            b = b - 1;
            Cal(10, b);
        }
    }
}

How many times is going to be printed, if the function is called with Cal(10, 10); ?

1
25
2
23
3
24
4
27

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation