Write a function that accepts two numbers,say a and b and
makes bth bit of a to 0.No other bits of a should get
changed.
Answers were Sorted based on User's Feedback
Answer / sandeep ambekar
Macro to Set a particular Bit..
#define SetBit(x,y) x | 0x1<<y
Macro to Clear a particular Bit..
#define ClearBit(x,y) x & ~(0x1<<y)
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / ramkumar
int func(int a,int b)
{
int ans;
ans = a - 2^b;
return ans;
}
| Is This Answer Correct ? | 0 Yes | 7 No |
What is zero based addressing?
Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is the meaning of 2d in c?
write a progam to display the factors of a given number and disply how many prime numbers are there?
To what value do nonglobal variables default? 1) auto 2) register 3) static
What is Bitwise Operator and how it works?
can any one provide me the notes of data structure for ignou cs-62 paper
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
write a program to rearrange the array such way that all even elements should come first and next come odd
1 1 12 21 123 321 12344231 how i creat it with for loop??
Is it acceptable to declare/define a variable in a c header?