495 views
3 votes
3 votes
#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 ?

1 Answer

1 votes
1 votes

lemme know if i m wrong....

Related questions

0 votes
0 votes
1 answer
1
rishu_darkshadow asked Nov 8, 2017
318 views
In C language, bitwise operation can be applied to which of the following operandsA. char B. int C. short, long ...
0 votes
0 votes
1 answer
2
dd asked Apr 20, 2017
685 views
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
5 votes
4 answers
4
Arjun asked Oct 18, 2016
1,321 views
What will be returned by the following function foo when called as foo(10)?int foo(int n) { return n & n | 1; }