更多“程序中头文件typel.h的内容是 #define N5#define M1 N*3#define"typel .h"#define M2N*2 main ( ”相关问题
  • 第1题:

    程序中头文件typel.h的内容是: #define N 5 #define M1 N*3 程序如下: #include"typel.h" #define M2 N *2 main( ) { int i; i=M1+M2; printf("%d\n",i); } 程序编译后运行的输出结果是

    A.10

    B.20

    C.25

    D.30


    正确答案:C

  • 第2题:

    在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是

    A.#include <math.h>

    B.#include <stdio.h>

    C.#define <math.h>

    D.#define <stdio.h>


    C

  • 第3题:

    2、在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是

    A.#include <math.h>

    B.#include <stdio.h>

    C.#define <math.h>

    D.#define <stdio.h>


    A

  • 第4题:

    程序中头文件typel.h的内容是: #define N 5 #define M1 N*3 程序如下: #include "type1.h” #define M2 N*2 main() { int i; i=M1+M2; printf("%d\n",i);} 程序编译运行后的输出结果是( )

    A.10

    B.20

    C.25

    D.30


    正确答案:C

  • 第5题:

    在C程序中如果要使用数学函数,如sqrt(x),pow(x,y)等,需要在程序中加入的语句是______

    A.#define <math.h>

    B.#define <stdio.h>

    C.#include <stdio.h>

    D.#include <math.h>


    C