Will a char array differ in ordering in a little endian or big endian system

前端 未结 4 881
[愿得一人]
[愿得一人] 2021-02-02 03:11

I have an array char c[12] = {\'a\',\'b\',\'c\',\'d\',\'e\',\'f\',\'g\',\'h\',\'0\',\'1\',\'2\',\'3\'} In hexadecimal these values would be {0x61, 0x62, 0x63,

4条回答
  •  清歌不尽
    2021-02-02 03:47

    The bytes must have ascending memory addresses (as seen by your C program) in the same order that you defined them.

提交回复
热议问题