recategorized by
152 views
1 votes
1 votes

Consider the following C program?

void mystery(int n){
    if(n<=0) return;
    printf("%d", 0);
    mystery(n-1);
    mystery(n-2);
}

int main(){
    int n=10;
    mystery(n);
    return 0;
}


The number of ‘0’s printed by above program is ?

recategorized by

Please log in or register to answer this question.

Answer:

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
0 answers
3
Arjun asked Jun 10, 2018
170 views
There are 8 students, each of them is asked to choose a letter from A to Z. How many different ways they can choose the letters such that the selected letters can form G...