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 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
Get step-by-step solutions from verified subject matter experts
