I don't understand this question so please tell me how can I start
Write a funtion called bitpat_get to extract a specified set of bits from an int variable. Assume the function takes three arguments: the first is an unsigned int from which the bits are extracted; the second is an int that is the position of starting bit; and the third is a bit count.
Using the convention that bit numbering starts at 0 with the leftmost bit, extract the specified number of bits from the first argument and put the extracted bits at the rightmost bits of an int variable which is returned from the function( The remaining bits of the returned variable should be 0's)
So the call y=bitpat_get(x,3,5);
will extract five bits from x sarting with the fourth bit from the left, and return the result to y.