We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
void calculate_the_maximum(int n, int k) {
int max_and=0, max_or=0, max_xor=0;
int and, or, xor;
for (int a=1; a max_and)
max_and = and;
if(ormax_or)
max_or = or;
if(xormax_xor)
max_xor = xor;
Bitwise Operators
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
void calculate_the_maximum(int n, int k) { int max_and=0, max_or=0, max_xor=0; int and, or, xor; for (int a=1; a max_and) max_and = and; if(ormax_or) max_or = or; if(xormax_xor) max_xor = xor;
}
int main() { int n, k;
}