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

List the different types of c tokens?

629


What are the 4 types of functions?

573


In C programming, how do you insert quote characters (‘ and “) into the output screen?

895


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

640


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

677






What is include directive in c?

646


Explain the difference between ++u and u++?

640


Explain how do you determine a file’s attributes?

594


Differentiate call by value and call by reference?

569


Explain union. What are its advantages?

619


How many types of operator or there in c?

603


Explain which function in c can be used to append a string to another string?

590


what are enumerations in C

724


What is function what are the types of function?

560


Why does everyone say not to use gets?

610