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.
Answer Posted / 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 |
Post New Answer View All Answers
Hi can anyone tell what is a start up code?
What are data structures in c and how to use them?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What does printf does?
Why clrscr is used after variable declaration?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
How important is structure in life?
How can I remove the leading spaces from a string?
What are the header files used in c language?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What are the 4 types of organizational structures?
Why doesnt that code work?
What do header files do?
What is the general form of #line preprocessor?
What is s in c?