C语言要在屏幕输出 %d 和 \n应该怎么写程序?

如题所述

printf("%%d\\n");

一般情况下的字符转义是用\
但是%比较特殊,用%进行转义。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-09-11
printf("%%d\\n");
第2个回答  2012-09-11
printf("%%d\\n");
第3个回答  2012-09-11
#include <stdio.h>
int main()
{
printf("%%d");
printf("\\n");
return 0;
}
希望能帮到你
相似回答