使用scanf()函数时,在源程序开头必须写预处理命令()
A: #include
B: #include
C: include
D: #include
A: #include
B: #include
C: include
D: #include
A
举一反三
- 使用scanf()函数时,在源程序开头必须写预处理命令( ) A: include <stdio.h> B: include <stdio > C: include <stdio.h> D: include <scanf.h>
- 使用scanf()函数时,在源程序开头必须写预处理命令( ) A: B: include <stdio.h> C: D: include <stdio > E: include <stdio.h> F: G: include <scanf.h>
- 使用scanf()和printf()函数时,必须在程序开头加上预处理命令()。 A: #include B: #include C: #include D: #include
- 使用strlen()函数需要在源程序开头写预处理命令#include
- 在程序中使用字符串处理函数时,需在程序的开头使用编译预处理命令:#include <;string.h>;。
内容
- 0
使用 getchar 和 putchar 函数时,必须在程序开头加上预处理命令#include < >。
- 1
一个C语言源程序中如果调用了函数fabs,那必须有编译预处理命令( )。 A: include <stdio.h> B: include <math.h> C: include <ctype.h> D: include <stdlib.h>
- 2
程序中需要使用printf、scanf、getchar和putchar等函数时,需要在程序源文件开头加上( )预处理命令。 A: B: define C: D: include "stdio.h" E: F: include "math.h" G: 什么都不需要加
- 3
使用scanf函数需要在头文件中添加___. A: include <stdio.h> B: include <ctype.h> C: include <float.h> D: include <iomanip.h>
- 4
printf和scanf函数是C语言的标准输入输出函数,开头的预处理指令#include 可以不写。