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