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


Please Help Members By Posting Answers For Below Questions

a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

859


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3062


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1006


Write a code to generate divisors of an integer?

833


Can you please explain the scope of static variables?

819


which type of aspect you want from the student.

1920


How can I find the modification date of a file?

970


Is that possible to add pointers to each other?

1144


What functions are used for dynamic memory allocation in c language?

870


How can you tell whether two strings are the same?

1046


What is pass by reference in c?

877


What is putchar() function?

856


What is 2 d array in c?

767


What is wrong with this statement? Myname = 'robin';

1076


Where does the name "C" come from, anyway?

887