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 / ramkumar
int func(int a,int b)
{
int ans;
ans = a - 2^b;
return ans;
}
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
Do you know the difference between malloc() and calloc() function?
How to establish connection with oracle database software from c language?
Why can't I perform arithmetic on a void* pointer?
Why main is used in c?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Difference between constant pointer and pointer to a constant.
What are the types of variables in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What are loops c?
What is the difference between functions abs() and fabs()?
What is struct node in c?
how to capitalise first letter of each word in a given string?
What are the types of bitwise operator?
What is string concatenation in c?
What happens if you free a pointer twice?