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
List the different types of c tokens?
What are the 4 types of functions?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
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
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
What is include directive in c?
Explain the difference between ++u and u++?
Explain how do you determine a file’s attributes?
Differentiate call by value and call by reference?
Explain union. What are its advantages?
How many types of operator or there in c?
Explain which function in c can be used to append a string to another string?
what are enumerations in C
What is function what are the types of function?
Why does everyone say not to use gets?