大伙觉得这样判断大端小端有问题没?
int main()
{
if (0x78 == (char)0x12345678)
printf("little_endian\n");
else
printf("big_endian\n");
return 0;
}
大伙觉得这样判断大端小端有问题没?
int main()
{
if (0x78 == (char)0x12345678)
printf("little_endian\n");
else
printf("big_endian\n");
return 0;
}