Find sum of even index binomial coefficients | CPP Program to find sum even indexed Binomial Coefficient . ; Returns value of even indexed Binomial Coefficient Sum which is 2 raised to power n - 1. ; Driver program to test above function
#include <bits/stdc++.h> NEW_LINE using namespace std ; int evenbinomialCoeffSum ( int n ) { return ( 1 << ( n - 1 ) ) ; } int main ( ) { int n = 4 ; printf ( " % d " , evenbinomialCoeffSum ( n ) ) ; return 0 ; }