I have a double variable. Is it possible to output every bit of this variable using char*(char pointer) ? So, char pointer would be
char* p = (char*)&myVar;
at the beginning and then it will be incremented to go through all the bits.
For example:
// double requires 8 bytes in the memory.
double x = 8;
Should output something like:
00000000 00001010 00000000 00000000 00000000 00000000 00000000 00000000