Drivers code
int main ( ) { long long arr [ ] = { 1 , 2 , 4 , 8 } ; int n = sizeof ( arr ) / sizeof ( arr [ 0 ] ) ; int k = 2 , x = 3 ; cout << maxOR ( arr , n , k , x ) << " STRNEWLINE " ; return 0 ; }