Recent questions tagged bitwise

0 votes
1 answer
1
In C language, bitwise operation can be applied to which of the following operandsA. char B. int C. short, long ...
3 votes
1 answer
2
#include <stdio.h int main() { unsigned int m = 0; m |= 0xA38; printf("%x\n",m|(m-1)); printf("%x\n",( (m|(m-1)) + 1 ) & m ); }Find the output ?
0 votes
1 answer
3
int main() { int n = 3,i,count=0; for(i=0;i<1<<n;i++) { int p = i; while(p) { int k = p & -p; p = p - k; count++; } } }The value of count variable after execution of the ...
5 votes
4 answers
6
0 votes
2 answers
7
What will be the output of the program?#include<stdio.h>int main(){ char c=48; int i, mask=01; for(i=1; i<=5; i++) { printf("%c", c|mask); mask ...
To see more, click for the full list of questions or popular tags.