I know that a hexadecimal number usually has a 0x prefix in C / C ++. For example, 0x5Ameans 90 in decimal. But I saw a code example using the one-shot character c '\x'.
BYTE outputBuffer[index++] = '\x5A'; // instead of 0x5A
Is the value '\x5A'exactly the same as 0x5A?
If so, why is there an alternative hexadecimal notation?
source
share