What is the exact binary format of a unsigned long long type (at least in visual studio).
I am doing some bit-wise operation with aliasing pointers, I set the bit through operations on unsigned char pointers then doing some other operations on unsigned long long pointers(alias).
The format of unsigned long long looks weird and because of this, it mess up the results, also, it seems that the bit-shift operation also behave strangely:
From bit-mask test it seems that this data is arranged from right: LSB->MSB : left, which means a >> shift will take the data to its more significant bit instead of the less ones, is this correct?
The compiler being ICC 13.0, and the OS is windows 7-64.
char*) to extract single bytes? In this case, your confusion probably comes from endianness issues.