I have a homework assignment where i am meant to write a function based on the code below, that prints the hexadecimal representation of word using bit operations.
I understand how to convert from decimal to hexadecimal and all that in c++, but what i dont understand, is how to use bit operations to do so.
I also do not understand what ostream& os means? the instructions state: The function writes the hexadecimal representation of word to output stream os. The function should use bit operations.