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
Differentiate between #include<...> and #include '...'
Why C language is a procedural language?
What is main () in c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Explain how can I avoid the abort, retry, fail messages?
What is the c language function prototype?
What is function pointer c?
What is static memory allocation?
What does 1f stand for?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is this pointer in c plus plus?
What is ponter?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is wrong with this code?
What is string function c?