问题描述
Difference between output sequence on the same code on removing "\n"
#include<stdio.h>
#include<errno.h>
#include<string.h>
int main()
{
FILE * fp;
fp = fopen("GeeksForGeeks","/root/C");
printf("Value of error no : %d\n",errno);
printf("The error message is : %s\n",strerror(errno));
perror("Message from perror.");
return 0;
}
这是我的代码,但是当我删除“\n”时,perror 的执行顺序发生了变化。 谁能解释一下原因?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)