这是代码
#include <stdio.h>
int main()
{
printf ("\t%d\n",printf("MILAN"));
printf ("\t%c",printf("MILAN"));
}
Run Code Online (Sandbox Code Playgroud)
这是输出
$gcc -o main *.c
$main
Run Code Online (Sandbox Code Playgroud)
米兰5
米兰|
现在的问题是
为什么printf返回| 当我们打印字符时(格式化程序为%c)?
5和|之间的关系是什么?这里?
c ×1