It smells of homework if you can't use the built-in features.
In any case, there is nothing magical in that it is a pointer; you just need to print the hex number.
Not knowing what features, if any, you can use. Basically you need to work out eight hexadecimal digits and then output them.
source
share