What does \x mean in C/C++?

前端 未结 7 1082
一生所求
一生所求 2020-12-08 09:46

Example:

char arr[] = \"\\xeb\\x2a\";

BTW, are the following the same?

\"\\xeb\\x2a\" vs. \'\\xeb\\x2a\'<

相关标签:
7条回答
  • 2020-12-08 10:35

    A useful website is here.

    And I quote:

    x Unsigned hexadecimal integer

    That way, your \xeb is like 235 in decimal.

    0 讨论(0)
提交回复
热议问题