Question: Write a C function checkbit to check a given bit position in a 32-bit variable. If the bit in the given position is 1, the

 Write a C function checkbit to check a given bit position

Write a C function checkbit to check a given bit position in a 32-bit variable. If the bit in the given position is 1, the function returns 1, otherwise it returns 0. The function has two arguments, the first argument is an integer variable, the second is the given bit position

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!