C51单片机C语言的头文件语句的语法格式是()
A: #include
B: #include(reg51.h)
C: #include;
D: #include(reg51.h);
A: #include
B: #include(reg51.h)
C: #include;
D: #include(reg51.h);
A
举一反三
- C51程序,要使用51系列单片机的寄存器,需要在程序开头使用哪个头文件包含语句?【】 A: #include"reg51.h" B: #include"reg52.h" C: #include D: #include<intrins.h>
- 在C51编程中,需要将软件提供的与各个单片机型号相对应的头文件包含到自己编写的程序中方便对硬件的各种操作。下面哪个是正确格式? A: include "reg51.h" B: include "reg51" C: Include "reg51.h" D: INCLUDE "reg51.h"
- #include <reg51.h>与#include “reg51.h”是等价的。( )
- #include<; reg51.h>;和#include" reg51.h",本质一样。
- #include与#include“reg51.h”都可完成文件包含。
内容
- 0
#include 与#include “reg51.h”是等价的。(
- 1
对于8051单片机来说,在C语言中使用扩充数据类型时,必须添加头文件包含语句#include<br/>“reg51.h”。(<br/>)
- 2
#include <reg51.h>与#include “reg51.h”是等价的。( )
- 3
在C51中,如果要编写51单片机的功能程序,必须要包含“reg51.h”头文件。()
- 4
12. #include [reg51.h]与#include “reg51.h”是等价的。