• 2022-10-30
    在C语言中,常用的数学函数所在的头文件是哪个( )
    A: stdio.h
    B: sting.h
    C: math.h
    D: stdlib.h
  • C

    内容

    • 0

      使用库函数前包含头文件stdio。h的正确命令是( )。 A: @include<stdio.h> B: #include<stdio.h> C: #include stdio.h D: #include”stdio.h”

    • 1

      随机函数rand()所在的库文件为( )。 A: stdlib.h B: time.h C: stdio.h D: math.h

    • 2

      若C程序中使用了strlen 函数,则要包含下列哪个头文件? A: <;stdlib.h>; B: <;stdio.h>; C: <;string.h>; D: <;math.h>;

    • 3

      在C语言中实现产生随机数功能需要用到的头文件为: A: math.h B: stdio.h C: string.h D: stdlib.h

    • 4

      在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入 A: B: include <;math.h>; C: D: include <;stdio.h>; E: F: define <;math.h>; G: H: define <;stdio.h>;