下面程序和运行运行结果是【 】。define N 10define s (x) x * xdefine f(x) (x * x)main( ){ iht i1,i2;i1 = 1000/s(N); i2 = 1000/f(N);printf("%d %d\n",i1,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);

}


相关考题:

#define能作简单的替代,用宏来替代计算多项式5*x*x+5*+5的值的函数f,正确的宏定义语句为( )。A.#definef(x)5*x*x+5*+5B.#definef5*x*x+5*x+5C.#definef(a) (5*a*a+5*a+5)D.#define5*x*x+5*+5f(x)

下面程序的运行结果是【17】。#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);}

以下程序运行后的输出结果是( )。main(){char c;int n=100;loat f=10;double x;x=f*=n/=(c=50);printf("%d%f\n",n,x);}

#define能作简单的替代,用宏来替代计算多项式5*x*x+5*x+5的值的函数f,正确的宏定义语句为( )。A.#definef(x)5*x*x+5*x+5B.#definef5*x*x+5*x+5C.#definef(a)(5*a*a+5*a+5)D.#define(5*x*x+5*x+5)f(x)

#define 能作简单的替代,用宏来替代计算多项式5*x*x+5*x+5的值的函数f,正确的宏定义语句为( )。A.#define f(x)5*x*x+5*x+5B.#define f5*x*x+5*x+5C.#define f(a)(5*a*a+5*a+5)D.#define(5*x*x+5*x+5)fx)

下面程序的运行结果是( )。include main(){int a=25; fun(A); }fun(int *x){ print 下面程序的运行结果是( )。include<stdio.h>main(){int a=25;fun(A);}fun(int *x){ printf("%d\n",++*x);}

#define能作简单的替代,用宏来替代计算多项式5 *x*x+5*x+5的值的函数f,正确的宏定义语句为( )。A.#define f(x) 5*x*x+5*x+5B.#define f5*X*x+5*x+5C.#define f(a) (5*a*a+5*a+5)D.#define(5*x*x+5*x+5) f(x)

下面程序的运行结果是_____和_____。 include define N 10 define s(x) x * x define 下面程序的运行结果是_____和_____。include<iostream.h>define N 10define s(x) x * xdefine f(x) (x * x)void main( ){ int i1,i2;i1=1000/s(N) ;i2=1000/f(N) ;cout < < i1 < < " " < < i2;}

define能作简单的替代,用宏替代计算多项式4*x*x+3*x+2之值的函数f,正确的宏定义是()。A.#define f (x) 4*x*x+3*x+2B.#define f 4*x*x+3*x+2C.#define f(a) (4*a*a+3*a+2)D.#define (4*a*a+3*a+2) f(a)