为什么个字符无法在C反斜线? [英] Why is percentage character not escaped with backslash in C?
本文介绍了为什么个字符无法在C反斜线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
的的printf()
文档中说,如果有人想打印%
的C,他可以使用:
The printf()
documentation says that if someone wants to print %
in C, he can use:
printf("%%")
为什么不能
printf("\%")
与其他特殊字符?
as with other special characters?
推荐答案
由于该%
是的printf
处理。这是不是在C特殊字符,但的printf
本身不同的对待它。
Because the %
is handled by printf
. It is not a special character in C, but printf
itself treats it differently.
这篇关于为什么个字符无法在C反斜线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文