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
Explain what is the difference between null and nul?
Write a program for Overriding.
Write a program to print "hello world" without using a semicolon?
What are the different types of objects used in c?
Is linux written in c?
What is structure in c definition?
What is %g in c?
Can you explain the four storage classes in C?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Is there any demerits of using pointer?
Explain the difference between #include "..." And #include <...> In c?
Why is c called a mid-level programming language?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is the difference between a string and an array?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?