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.
Bitwise Operators
Bitwise Operators
Sort by
recency
|
521 Discussions
|
Please Login in order to post a comment
include
include
include
include
//Complete the following function.
void calculate_the_maximum(int n, int k) {int lAND=0 , lOR=0,lXOR=0; //Write your code here. for(int i = 1; i <= n; i++) { for(int j = 1; j lAND && andlOR && orlXOR && xor
int main() { int n, k ;
}
void calculate_the_maximum(int n, int k) { //Write your code here. int i,j,a,b,or_val=0,and_val=0,xor_val=0,max_and_val =0,max_or_val=0,max_xor_val=0; for(i=1;i max_and_val) && (and_val max_or_val) && (or_val max_xor_val) && (xor_val
int main() { int n, k;
}
include
include
include
include
//Complete the following function.
void calculate_the_maximum(int n, int k) { int temp = 0; int maxAND =0; int maxOR =0; int maxEXOR =0;
for(int i = 1; i < n; i++) { for(int j = (i +1); j <= n; j++) {
} printf("%d\n", maxAND); printf("%d\n", maxOR); printf("%d\n", maxEXOR); }
int main() { int n, k;
}
include
include
include
include
int main() { int n, k; int c = 0; int maxAnd = 0, maxOr = 0, maxXor = 0; scanf("%d %d", &n, &k);
}