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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ramkumar
int func(int a,int b)
{
int ans;
ans = a - 2^b;
return ans;
}
| Is This Answer Correct ? | 0 Yes | 7 No |
When we use void main and int main?
WHAT IS FLOAT?
what is the difference between unix os and linux os
dynamically allocate memory for linear array of n integers,store some elements in it and find some of them
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is sizeof int in c?
Differentiate between declaring a variable and defining a variable?
Explain why can’t constant values be used to define an array’s initial size?
1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision
write a program for even numbers?
What do you mean by c what are the main characteristics of c language?
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }