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
Write a program to print factorial of given number without using recursion?
Tell me with an example the self-referential structure?
Do you know the difference between malloc() and calloc() function?
What is the difference between class and object in c?
What are the advantages of using Unions?
Can include files be nested? How many levels deep can include files be nested?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
Why do we need volatile in c?
How can a program be made to print the name of a source file where an error occurs?
Should a function contain a return statement if it does not return a value?
Explain how can I manipulate strings of multibyte characters?
What tq means in chat?
Tell me the use of bit field in c language?
What are the keywords in c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above