I am trying to use printf to output an unsigned integer from a array of bytes but I cannot figure out how?
e.g.
char ptr[4]={0x00, 0x00, 0x00, 0xff);
printf("%u",*ptr);
but I cannot get the answer 255 :(
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.