程序中头文件typel.h的内容是 #define N 5 #define M1 N*3 #define "typel .h" #define M2 N*2 main ( ) { int i; i=M1+M2; printf ("%d\n", i ); } 程序编译后运行的输出结果是
A.10
B.20
C.25
D.30
第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
第2题:
在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是
A.#include <math.h>
B.#include <stdio.h>
C.#define <math.h>
D.#define <stdio.h>
第3题:
2、在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是
A.#include <math.h>
B.#include <stdio.h>
C.#define <math.h>
D.#define <stdio.h>
第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
第5题:
在C程序中如果要使用数学函数,如sqrt(x),pow(x,y)等,需要在程序中加入的语句是______
A.#define <math.h>
B.#define <stdio.h>
C.#include <stdio.h>
D.#include <math.h>