I am studying big and little-endianness.
1. What is the purpose of | \
in the following code?
...
#elif defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
#define htons(A) ((((uint16_t)(A) & 0xff00) >> 8) | \
(((uint16_t)(A) & 0x00ff) << 8))
...
2. What is the purpose of (A)
in the code?