#include <stdlib.h>
// rotate the values pointed to by three pointers
// so values move from xp to yp, yp to zp and zp to xp
void rotate(int *xp, int *yp, int *zp) {
return;
}
// Write a function that returns 0 if x is 0, returns -1
// if x < 0, returns 1 if x > 0
// Your code must follow the Bit-Level Integer Coding
Rules
// on the textbook (located between hw 2.60 and 2.61).
// You can assume w = 32.
// The only allowed operations in your code are:
// ! ~ & ^ | + << >>
// This requirement is more restrictive than the coding
rules.
int sign(int x) {
return 0;
}
// Given a source string, and a destination string, write
the
// reversed source string into destination. Make sure you
terminate
// the reversed string properly with an integer value 0.
// You may assume that the destination array is big enough to
hold
// the reversed string.
void reverse(const char source[], char destination[]) {
return;
}