文件IO相关的几个面试题
如下代码输出什么?
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
fprintf(stderr, "Hello ");
fprintf(stdout, "It's a small ");
fprintf(stderr, "World\n");
fprintf(stdout, "place\n");
return 0;
}
运行结果:
[root systemProgramming]#./printf
Hello World
It's a s......