printf
在C中使用时,如何逃避%符号?
printf("hello\%"); /* not like this */
Run Code Online (Sandbox Code Playgroud) 该printf()
文件说,如果有人想打印%
在C,他可以使用:
printf("%%")
Run Code Online (Sandbox Code Playgroud)
为什么不是:
printf("\%")
Run Code Online (Sandbox Code Playgroud)
和其他特殊字符一样?