标签: c bits
由于某种原因,当使用指针
机器是小端的。
s64 num = 0x12345678ABCDEF99; printf("%x%x", *(int* )((&num) + sizeof(int) ) ,*(int* )(&num)); //i used *(int* )(&num)to show that it works only with the first 32 bits
输出:0abcdef99
0abcdef99