Question: ////using C, and can't use library. /* *Write the function rotateLeft(x) that returns the value of x with the bits shifted to the left by
////using C, and can't use library.

/* *Write the function rotateLeft(x) that returns the value of x with the bits shifted to the left by one bit position, * and the most significant bit replacing the least significant bit. * For example, rotatetLeft(0x88888888) should return 0x11111111. */ int rotateLeft(int x) { // TODO: add your code here }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
