How does “\x” work in a String?

后端 未结 4 630
一生所求
一生所求 2021-01-02 14:06

I\'m writing a C/C++ program that involves putting a hex representation of a number into a string and I\'m confused as to how \\x works. I\'ve seen examples wh

4条回答
  •  悲哀的现实
    2021-01-02 15:11

    From the C99 standard (6.4.4.4):

    Each octal or hexadecimal escape sequence is the longest sequence of characters that can constitute the escape sequence.

提交回复
热议问题