设 define F(x)x*x main() {inta=3,b=4,c; c=F(a+b); printf ("%d\n",c); } 则程序执行
设
define F(x)x*x
main()
{inta=3,b=4,c;
c=F(a+b);
printf ("%d\n",c);
}
则程序执行后输出的值是______。
设
define F(x)x*x
main()
{inta=3,b=4,c;
c=F(a+b);
printf ("%d\n",c);
}
则程序执行后输出的值是______。
下面程序的运行结果是:【 】。 define N 10 define s(x)x*x define f(x)(x*x) main() { int i1,i2; i1=1000/s(N);i2=1000/f(N); printf(“%d%d\n”,i1,i2); }
下面程序的运行结果是()。 include<stdio.h> define P0WER(x) ((x)*(x)) void main() { int i=1; while(i<=4) { printf("%d\t",P0WER(i++)); } printf("\n"); }
A.2 3
B.5 7
C.1 9
D.2 12
有以下程序 int f1(int x,int y){return x>y?x:y; } int f2(int x,int y){return x>y?y:x; } main() { int a=4,b=3,c=5,d=2,e,f,g; e=f2(f1(a,b),n(c,d));f=f1(f2(a,b),n(c,d)); g=a+b+c+d-e-f; printf("%d,%d,%d\n",e,f,g); } 程序运行后的输出结果是______。
A.4,3,7
B.3,4,7
C.5,2,7
D.2,5,7
下面程序的运行结果是【 】。 define N 10 define s(x) x*x define f(x)(x*x) mam() { int il,i2; i1=1000/s(N);i2=1000/f(N); printf("%d %d\n",il,i2); }
下面程序和运行运行结果是【 】。
define N 10
define s (x) x * x
define f(x) (x * x)
main()
{ iht i1,i2;
i1 = 1000/s(N); i2 = 1000/f(N);
printf("%d %d\n",i1,i2);
}
A.#define f(x) 4*x*x+3*x+2
B.#define f 4*x*x+3*x+2
C.#define f(a) (4*(a)*(a)+3*(a)+2)
D.#define (4*a*a+3*a+2) f(a)
A.#define f (4*x*x+3*x+2)
B.#define (4*x*x+3*x+2) f
C.#define f(x) (4*x*x+3*x+2)
D.#define (4*x*x+3*x+2) f(x)
A.#define f (x) 4*x*x+3*x+2
B.#define f 4*x*x+3*x+2
C.#define f(a) (4*a*a+3*a+2)
D.#define (4*a*a+3*a+2) f(a)
A.(define (f x y) (cond ((x>y) (* x x x)) ((x=y ) 0) ((x <y ) (* y y))>
B.(define (f x y) (cond ((> x y ) (* x x x)) ((= x y ) 0) ((< x y ) (* y y y)) ))
C.(define (f x y) (cond ((x>y) (x*x*x)) ((x=y ) 0) ((x <y ) (y*y*y))>
D.(define (f x y) (cond ((< x y ) (* x x x)) ((= x y ) 0) ((> x y ) (* y y y)) ))
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!