A.小周不是经理
B.小王是工人
C.小赵是学生
D.小周是经理
第1题
下列定义不正确的有______。
A.#define PI 3.141592
B.#define S 345;
C.int max(x, y); int x,y; {}
D.int max(int,int);
第2题
下面宏定义正确的是()
A.#define S a*b
B.#define PI 3.14;
C.#define max(a,b) ((a) >(b) ?(a) ;(b) )
D.#define s(x) (x)*(x);
第3题
在下列的符号常量定义中,正确的定义格式为()
A.#define M1
B.const int M2 20
C.#define M3 10
D.const char mark
第4题
下列定义数组的语句中正确的是______。
A.#define size 10 char str1[size],str2[size+2];
B.char str[];
C.int num['10'];
D.int n=5; int a[n][n+2];
第5题
下列选项中不会引起二义性的宏定义是()。
A.#define S(x) x*x
B.#define S(x) (x)*(x)
C.#define S(x) (x*x)
D.#define S(x) ((x)*(x))
第6题
下列选项中不会引起二义性的宏定义是()。
A.#define S(x) x*x
B.#define S(x) (x)*(x)
C.#define S(x) (x*x)
D.#define S(x) ((x)*(x))
第7题
A、A.#define PI 3.14159
B、B.#include <math.h> ;
C、C.if(2);
D、D.for(;;) if(1) break;
第9题
A.#define PI 3.141592
B.#define S 345
C.int max(x,y); int x,y; { }
D.static char c;
第10题
当执行下列宏定义命令后,S的值为 () # defineR3.0 # define PI 3.1415926 # define L2 * PI * R # define S PI * R * R
A.3.1415926
B.18.849556
C.3
D.28.2743334
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!