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?
I think you can use shift operation and mask to "mask out" the actual bits.
int t = 128;
for(int i=0;i<8;++i) { printf("%d", p & t);
p =>> 1;
t =>> 1; }