• 2022-06-30
    使用scanf()函数时,在源程序开头必须写预处理命令()
    A: #include
    B: #include
    C: include
    D: #include
  • A

    内容

    • 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 可以不写。