Ok Heres another question:
"Write a function, unsigned char exchange(unsigned char in),
which exchanges the right 4 bits of an unsigned char with its left 4 bits (e.g. exchange(0x54) will return 0x45.)"
What would be the logic of the question. I mean for this I want to know what is unsigned char. What would be the value of unsigned char. If that is know I know how to use bit operations.