how to print the address of pointer whats wrong with %u? WARNING???
If you are using C along with the
printf
function and you want to output the value of a pointer, then you need the
%p
conversion, not
%u
.
If you still want to use
%u
, then you may have to explicitly cast the value to
(unsigned int)
.
Hope this helps.