• edited by
620 views

1 Answer

0 0 votes

What is  mCn?

No of ways of selecting n elements out of m.

Now look at the expression.

Func( m-1, n).  It says...I didn't select that element and now m looking for n elements out of m-1.

Function(m-1,n-1). It says...I selected that element and now I am looking for n-1 more elements out of remaining m-1.

An element can be selected or rejected. Both cases covered.

• edited by
Position:
Show:

Related questions

0 0 votes
0 0 answers
1.0k
1.0k views
Ram Swaroop asked Jan 29, 2019
1,010 views
Consider the following C code:#include <stdio.h>struct MadeEasy{char p,q,r;};int main (void){struct MadeEasy a={ d' - 2019,'e',5+'a'};struct MadeEasy *b=&a;printf("%c, %c...
2 2 votes
1 1 answer
2.2k
2.2k views
Ram Swaroop asked Jan 29, 2019
2,196 views
Consider the following C code:include <stdio.h>int fun(){static int num=25;return num ;}int main(){for(fun( ); fun();fun())printf("%d", fun( ));return O;}The sum of the v...
2 2 votes
0 0 answers
1.4k
1.4k views
srestha asked Jan 28, 2019
1,364 views
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)?
1 1 vote
0 0 answers
2.1k
2.1k views
Na462 asked Jan 12, 2019
2,094 views
Number of times # will be printed on foo(7) ?