This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C51: Is this a compiler bug ?

... or a misunderstanding on my part ?

From string "\x0CTUV", the compiler generates 0x0C 0x55 0x56 0x57 0x00

From string "\x0CABC", the compiler generates 0xCA 0x42 0x43 0x00 ... rather than the expected 0x0C 0x41 0x42 0x43 0x00

I thought the \x escape sequence in a string instructed the compiler to encode the very next two characters as a hexadecimal byte.

Am I missing something ?

Parents Reply Children
No data