This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 04/26/2009 for the course EE 302 taught by Professor Mccann during the Fall '06 term at University of Texas.
- Fall '06
- Electrical Engineering