Is it true that endianness only affects the memory layout of numbers,but not string?

后端 未结 4 1860
遇见更好的自我
遇见更好的自我 2021-01-04 18:34

Is it true that whether the architecture is big or little endian ,only the memory layout of numbers differ,that of the string is the same.

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-04 18:59

    That's generally not true. Depending on the circumstances, more than one byte might be used for characters, in which case there is a difference between little endian encoding of characters and big endian encoding of characters.

提交回复
热议问题