2 votes 2 votes void foo(int n) { for(i1=1;i1<=n;i1++) { for(i2=1;i2<=i1;i2++) { ....... { for(i6=1;i6<=i5;i6++) { count++; } } } } } Count initially 0.What is value returned by foo(8)? Programming in C programming-in-c programming made-easy-test-series + – srestha asked Jan 28, 2019 • edited Mar 3, 2019 by ajaysoni1924 srestha 667 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments aambazinga commented Jan 28, 2019 reply Follow Share @Shobhit Joshi's answer is nice. I just want to add that, this type of loop is a general form for computing (n+r-1)C(r), here n=8, r=6. 0 votes 0 votes Shobhit Joshi commented Jan 28, 2019 i edited by Shobhit Joshi Jan 28, 2019 reply Follow Share @aambazinga thanks, i will try to remember ! 0 votes 0 votes pradeepchaudhary commented Mar 8, 2019 reply Follow Share 1716 is the answer.... 0 votes 0 votes Please log in or register to add a comment.