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

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1766


What is the explanation for cyclic nature of data types in c?

934


How many levels of indirection in pointers can you have in a single declaration?

875


What is the difference between new and malloc functions?

869


What are 'near' and 'far' pointers?

849


Why C language is a procedural language?

844


What is the difference between array and pointer in c?

854


What are the rules for the identifier?

936


what is the different bitween abap and abap-hr?

1970


What are bitwise shift operators in c programming?

872


what do you mean by enumeration constant?

821


Can you please explain the difference between strcpy() and memcpy() function?

853


Can two or more operators such as and be combined in a single line of program code?

1159


How many keywords (reserve words) are in c?

858


How can I insert or delete a line (or record) in the middle of a file?

821