Maximum Bitwise AND pair ( X , Y ) from given range such that X and Y can be same | C ++ implementation to find the Maximum Bitwise AND pair ( X , Y ) from given range such that X and Y can be same ; Function to return the maximum bitwise AND ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int maximumAND ( int L , int R ) { return R ; } int main ( ) { int l = 3 ; int r = 7 ; cout << maximumAND ( l , r ) ; return 0 ; }