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? Programming in C programming-in-c programming + – srestha asked Dec 23, 2018 srestha 327 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments srestha commented Dec 23, 2018 reply Follow Share how? Any easy way? 0 votes 0 votes srestha commented Dec 23, 2018 reply Follow Share now got 21 code(3)=9 times code(2)=4 times code(1)=2 times Now for i=1=>14 times and i=2 =>7 times where is mistake? 0 votes 0 votes Shubhgupta commented Dec 23, 2018 reply Follow Share https://gateoverflow.in/234607/madeeasy-test-series chk this. 1 votes 1 votes Please log in or register to add a comment.