Suppose I do a
double d = 234.5;
I want to see the memory contents of d [the whole 8 bytes]
d
How do I do that?
unsigned char *p = (unsigned char *)&d; int i; for (i = 0; i < sizeof d; i++) printf("%02x ", p[i]);