本文介绍了什么是\ 363 \ 353 \ 377 \ 377 \ 377 \ 177?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(gdb) p (char*)0x7fffffffe9c8
$16 = 0x7fffffffe9c8 "\363\353\377\377\377\177"
它看起来既不是ascii也不是多字节,那是什么?
It doesn't look like ascii nor multibyte,what's that?
推荐答案
这些是八进制字符逃脱.它们通常用于将没有字节含义的字节插入字符串或需要具有特定的二进制值.例如,\377
是十六进制值ff
或十进制255
,它是ASCII中的ÿ
,但是在这种情况下很可能具有非常不同的含义.
These are octal character escapes. They are usually used to insert bytes into a string that don't have a meaning as text or need to have a certain binary value. \377
for instance is the hexadecimal value ff
or decimal 255
which would be this ÿ
in ASCII but most likely has a very different meaning in this context.
这篇关于什么是\ 363 \ 353 \ 377 \ 377 \ 377 \ 177?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!