Unformatted text preview: a) storage duration b) scope c) linkage d) type 7. Write the following functions: Unsigned int rotate_left(unsigned int I, int n); Unsigned int rotate_right(unsigned int I, int n); The value of rotate_left(I, n) should be the result of shifting the bits in I to the left by n places, with the bits that were “shifted off” moved to the right end of i. (For example, rotate_left(0x1234, 4) should return 0x2341 if integers are 16 bits long.) rotate_right should be similar, but “rotate” bits to the right instead of the left....
View Full Document
- Fall '06
- Electrical Engineering, unsigned int, Left-wing politics, static int, Unsigned int rotate_left