//char s[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };//0
//char s[8] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x3f };//1
char s[8] = { 0, 0, 0, 0, 0, 0, 0, 0x40 };//2
//char s[8] = { 0, 0, 0, 0, 0, 0, 0x08, 0x40 };//3
//char s[8] = { 0, 0, 0, 0, 0, 0, 0x10, 0x40 };//4
double d;
memcpy(&d, s, 8);
printf("%g", d);
//double的内存布局可以通过上面的代码看出些什么,以上是windows下c代码。