📚 Question Bank Q60 — Programming and Data Structure
Tags
Programming and Data Structure
Q60. Marks: +2.0 UGC NET Paper 2: Computer Sc 23rd August 2024 Shift 1

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 ✓ Correct
📄 All “Programming and Data Structure” questions across papers
🏷 Change Tag for this Question