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
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is the purpose of void pointer?
What are valid operations on pointers?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
When do we get logical errors?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is the difference between local variable and global variable in c?
What are the types of functions in c?
What is the best way to store flag values in a program?
What is echo in c programming?
When should a type cast not be used?
What is a const pointer?
Tell me when is a void pointer used?
What is volatile keyword in c?
Write the control statements in C language