What is the byte order - I understand. But I absolutely do not understand how to "correctly" represent the addressing of bytes in the computer's memory. I have always believed that the correct presentation is from left to right , but now I’m not so sure.
For example:
// Допустим, эта переменная лежит в памяти по адресу 2... // И имеет порядок Little-Endian uint16_t u16 = 256; Then, it turns out that:
Номер байта: 0 1 2 3 4 5 6... Значение: xx 0 1 xx x... ^ &u16 вернет этот адрес Is this the correct presentation?
This situation can also be represented as follows:
Номер байта: ...6 5 4 3 2 1 0 Значение: ...xxx 1 0 xx ^ &u16 вернет этот адрес And then the brain breaks ...
In general, the questions are:
1) Is the idea that byte addressing of memory goes from left to right correctly? At least when considering c .
2) Where is the description of what specifically returns the operator for receiving the address of an object & object ? Does this statement return the address of the byte of the object closest to the origin ? Or what?