这里我们将看到另一种不使用 %c 格式说明符打印字符的方法。这个可以通过直接以十六进制形式放置ascii值来完成。
示例代码#include <stdio.h>main () { printf("\x41
"); //41 is ascii of a in hex printf("\x52
"); //41 is ascii of a in hex printf("\x69
"); //41 is ascii of a in hex}
输出ari
以上就是c程序打印字符,不使用格式说明符的详细内容。
