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


Please Help Members By Posting Answers For Below Questions

Hi can anyone tell what is a start up code?

1613


What are data structures in c and how to use them?

670


Using which language Test cases are added in .ptu file of RTRT unit testing???

3581


What does printf does?

740


Why clrscr is used after variable declaration?

1035






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

2528


How important is structure in life?

586


How can I remove the leading spaces from a string?

630


What are the header files used in c language?

583


How can I rethow can I return a sequence of random numbers which dont repeat at all?

700


What are the 4 types of organizational structures?

621


Why doesnt that code work?

597


What do header files do?

601


What is the general form of #line preprocessor?

581


What is s in c?

608