bit manipulation need help urgent
Code:
please help me with the following c code
Bit manipulation:
a. In the following code snippet:
i. Replace xxxx with code that sets bit 3 of variable a.
ii. Replace zzzzz with code that sets a equal to b with bit 4 cleared
iii. Replace mmm with code that sets a equal to b with bit 5 set and bit 7 cleared
int myfunc(int b)
{
int a = 0;
if (b == 10)
xxxx // set bit 3 of a
else if (b == 20)
zzzzzz // a = b with bit 4 cleared
else
mmmmm // a = b with bit 5 set and 7 cleared
return a;
}