Morphology is defined as the study of the internal structure and the formation of wor
正确
正确
有以下程序
# include <stdio.h>
# define N 5
# define M N+1
# define f(x) (x*M)
main()
{ int i1, i2;
i1 = f(2) ;
i2 = f(1+1) ;
printf("%d %d\n", i1, i2);
}
程序的运行结果是
A)12 12
B)11 7
C)11 11
D)12 7
A.#define f(x)5*x*x+5*x+5
B.#define f5*x*x+5*x+5
C.#define f(a)(5*a*a+5*a+5)
D.#define (5*x*x+5*x+5)f(x)
下面程序的运行结果是_____和_____。
include<iostream.h>
define N 10
define s(x) x * x
define f(x) (x * x)
void main()
{ int i1,i2;
i1=1000/s(N) ;i2=1000/f(N) ;
cout < < i1 < < " " < < i2;
}
A.#define f(x)5*x*x+5*x+5
B.#define f5*x*x+5*x+5
C.#define f(a)(5*a*a+5*a+5)
D.#define(5*x*x+5*x+5)fx)
以下程序运行后,输出结果是______。 #define P4.5 #define S(x)P*x*x #include<stdio.h> main() { int a=2,b=3; printf("%.1f\n",S(a+b)); }
A.49.5
B.112.5
C.18
D.24
以下程序的输出结果是()。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf("%d",(int)(y)) #define P(y)w(y) main() {int x=2; P(F(5)*x); }
A.12
B.13
C.14
D.16
以下程序的运行结果是()。 define A 4 define B(x)A*x/2 main() {float c,a=8.0; c=B(A; printf("%f\n",C); }
以下程序的运行结果是 #define MAX(A,B) (A)>(B)?(A):(B) #define PRINT(Y) printf("Y=%d\t",Y) main() { int a=1,b=2,c=3,d=4,t; t=MAX(a+b,c+d); PRINT(t);}
A.Y=3
B.存在语法错误
C.Y=7
D.Y=0