327 views
0 votes
0 votes
#include<stdio.h>
int code(int m){
    if(m>0){
        int i=1;
        for(;i<3;i++){
            code(m-i);
            code(m-i-1);
            printf("GATE2019");
        }
    }
}
int main()
{
    code(4);
    return 0;
}

How many times GATE2019 will be printed?

Please log in or register to answer this question.

Related questions

3 votes
3 votes
3 answers
1
Laxman Ghanchi asked May 19, 2023
1,111 views
#include<stdio.h void print(int n) { printf("Hello "); if(n++ == 0) return ; print(n); n++; } int main() { void print(); print(-4); }How many times printf execute?? And H...
0 votes
0 votes
1 answer
2
Laxman Ghanchi asked May 19, 2023
656 views
#include<stdio.h>void print(int n){ printf("Hello "); if(n++ == 0) return ; print(n); n++;}int main(){ void print(); print(-4);}