在使用输入、输出函数时,若不写上编译预处理命令#include <stdio.h>,对程序执行的结果有何影响?
时间: 2023-05-19 15:05:31 浏览: 144
#include <stdio.h>
则会出现编译错误,因为编译器无法识别输入输出函数的定义。这是因为输入输出函数的定义在头文件stdio.h中,如果不包含该头文件,编译器就无法识别这些函数。因此,在使用输入输出函数时,必须包含头文件stdio.h,并且在程序中写上编译预处理命令#include <stdio.h>。
相关推荐
![text/x-c](https://img-home.csdnimg.cn/images/20210720083646.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)