【单选题】以下程序的输出结果为()。 #include <stdio.h> #define F(y) 3.84+y #define PR(a) printf(“%d”,(int)(a)) #define PRINT(a) PR(a); putchar(‘n’) main() { int x=2; PRINT(F(3)*x); }A.8B.9C.10D.11

【单选题】以下程序的输出结果为()。 #include <stdio.h> #define F(y) 3.84+y #define PR(a) printf(“%d”,(int)(a)) #define PRINT(a) PR(a); putchar(‘n’) main() { int x=2; PRINT(F(3)*x); }

A.8

B.9

C.10

D.11


参考答案和解析
B 解析:执行“p=f(i,++i):”后i的值为2,所以a和b的值都为2,则c=0,选项B正确。

相关考题:

有以下程序 include define N 5 define M N+1 有以下程序 #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 12B.11 7C.11 11D.12 7

(36)有以下程序#include stdio.h#define PT 3.5;#define S(x) PT*x*x;main(){ int a=1, b=2; printf(“%4.1f\n”,S(a+b));}程序运行后输出的结果是A)14.0 B)31.5 C)7.5 D)程序有错无输出结果

以下程序运行后,输出结果是define PT5.5define S(x)PT*x*xincludemain(){int a=1,b= 以下程序运行后,输出结果是 #define PT 5.5 #define S(x) PT*x*x #include<stdio.h> main() { int a=1,b=2; printf("%4.1f\n",s(a+b));}A.49.5B.9.5C.22D.45.0

下列程序的输出结果是()。 include define F(x)2.84+x define w(y)printf("%d",(int) 下列程序的输出结果是( )。#include<stdio.h>#define F(x)2.84+x#define w(y)printf("%d",(int)(y))#define P(y)w(y)putchar('\n')main(){ int x=2;P(F(5) *x);}A.12B.13C.14D.16

以下程序的输出结果是______。 include define FUDGE(y)2.84+y define PR(a) printf( 以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d",(int)(a)) #define PRINT1(a) PR(a);putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*x); }A.11B.12C.13D.15

有以下程序 include define F(X,Y) (X)*(Y) main( ) { int a=3, b=4; prin 有以下程序#include <stdio.h>#define F(X,Y) (X)*(Y)main( ){ int a=3, b=4;printf("%d\n", F(a++, b++));}程序运行后的输出结果是A.12B.15C.16D.20

有以下程序:include defineF(X, Y)(X)*(Y)main ( ){int a=3,b=4;printf("%d\n",F( 有以下程序:#include <studio. h >#define F(X, Y) (X)*(Y)main ( ){ int a=3, b=4; printf("%d\n", F(a++, b++));}A.12B.15C.16D.20

以下程序的输出结果是_________。 #include<stdio.h #defineFUDGE(y) 2.84+y #define PR(A) printf("%d",(int)(A) ) #definePRINT1(A) PR(A) ;putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*X); }A.11B.12C.13D.15

下列程序的输出结果是()。includedefine F(x)2.84+xdefine w(y)printf("%d",(int)(y) 下列程序的输出结果是( )。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf("%d",(int)(y)) #define P(y)w(y)putchar('\n') main() { int x=2; P(F(5)*x); }A.12B.13C.14D.16

以下程序的输出结果是______。includedefine FUDGE(y)2.84+ydefine PR(A)printf("%d" 以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(A) printf("%d",(int)(a) ) #define PRINT1(A) PR(a) ;putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*X); }A.11B.12C.13D.15

以下程序的输出结果是______。 include define FUDGE(y)2.84+y define PR(a)printf(" 以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d",(int)(a)) #define PRINT() PR(s) ;putchar('\n') main() { intx=2; PRINT1 (FUDGE(5)*x); }A.11B.12C.13D.15

有以下程序includedefine F(X,Y)(X)*(Y)main(){int a=3,b=4;printf("%d\n",F(a++,b++ 有以下程序 #include<stdio.h> #define F(X,Y)(X)*(Y) main() { int a=3,b=4; printf("%d\n",F(a++,b++)); 程序运行后的输出结果是A.12B.15C.16D.20

有以下程序:includedefine N 5define M N+1define f(x)(x*M)main(){int i1,i2;i1=f 有以下程序: #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",i1,i2); } 程序的运行结果是( )。A.12 12B.11 7C.11 11D.12 7

下列程序的输出结果是 #include"stdio.h" #define M(x,y) x%y main() { int a,m=12,n=100; a=M(n,m); printf("%d\n",a--);}A.2B.3C.4D.5

以下程序的输出结果是______。include define FUDGE(y)2.84+ydefine PR(a) printf ( 以下程序的输出结果是______。#include <stdio. h>#define FUDGE(y) 2.84+y#define PR(a) printf ("%d",(int)(a))#define PRINT1(a) PR(a); putchar('\n')main(){ int x=2; PRINT1(FUDGE(5)*x);}A.11B.12C.13D.15

以下程序运行后,输出结果是______。 define P4.5 define S(x)P*x*x include main() { 以下程序运行后,输出结果是______。 #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.5B.112.5C.18D.24

有以下程序:include define f(x) x*xmain(){int i; i=f(4+4)/f(2+2); priatf("%d\n", 有以下程序: #include <stdio.h> #define f(x) x*x main() { int i; i=f(4+4)/f(2+2); priatf("%d\n",i); } 执行后的输出结果是( )。A.28B.22C.16D.4

有以下程序#include "stdio.h"#define M(x,y) (x)*(y) #define N(x,y) (x)/(y) main(){ int a=5,b=6,c=8,k; k=N(M(a,b),c); printf("%d\n",k);} 程序的运行结果是A.3 B.5C.6 D.8

以下程序的输出结果是()。includedefine F(x)2.84+xdefine w(y)printf("%d",(int)(y) 以下程序的输出结果是( )。 #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.12B.13C.14D.16

以下程序运行后,输出结果是() include define PT5.5 define S (x)PT* x * x 以下程序运行后,输出结果是 ( ) # include<stdio.h> # define PT5.5 # define S (x)PT* x * x main( ) { int a=1,b=2; printf("%4.1f\n",s(a+b)); }A.49.5B.9.5C.22D.45

下列程序的输出结果是()。includedefineF(x)2.84+xdefine w(y) printf("%d",(int)(y) 下列程序的输出结果是( )。 #include<stdio.h> #defineF(x)2.84+x #define w(y) printf("%d",(int)(y)) #define P(y)w(y)putchar('\n') main() { int x=2; P(F(5)*x); }A.12B.13C.14D.16

有以下程序:include define P 3void F(int x) {return(P* x* x); tmain( ){printf(" 有以下程序:#include <stdio.h>#define P 3void F(int x) { return(P* x* x); tmain( ){ printf(" % d \n" ,F(3 + 5) ); }程序运行后的输出结果是( )。A.192B.29C.25D.编译出错

阅读下列程序段,则程序的输出结果为 #include"stdio.h" #define M(X,Y)(X)*(Y) #define N(X,Y)(X)/(Y) main() { int a=5,b=6,c=8,k; k=N(M(a,b),c); printf("%d\n",k);}A.3B.5C.6D.8

有以下程序: include define M 5 define f(x,y) x*y+M main( ) { int k; k=f(2,3)*f(2,3); printf("%d\n",k); } 程序的运行结果是( )。 A.22B.41C.100D.121

以下程序的输出结果是______。includedefine FUDGE(y) 2.84+ydefine PR(a)printf("%d 以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d\n",(int)(a)) #define PRINT1(a) PR(a);putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*x); }A.11B.12C.13D.15

下列程序的输出结果是______。includedefine FUDGE(y)2.84+ydefine PR(a)printf("%d" 下列程序的输出结果是______。#include<stdio.h>#define FUDGE(y) 2.84+y#define PR(a) printf("%d",(int)(a))#define PRINTl(a) PR(a);putchar('\n')main (){ int x=2; PRINT1(FUDGE(5)*x);}A.11B.12C.13D.15

有以下程序:include define F(X,Y)(X)*(Y)main(){int a=3,b=4;printf("%d\n",F(a++,b 有以下程序: #include <stdio.h> #define F(X,Y)(X)*(Y) main() { int a=3,b=4; printf("%d\n",F(a++,b++)); } 程序运行后的输出结果是( )。A.12B.15C.16D.20

单选题有以下程序:#include #define F(x) 2.84+x#define PR(a) printf(%d,(int)(a))#define PRINT(a) PR(a);putchar('')main(){ PRINT(F(5)*2);}程序运行后的输出结果是(  )。A12B13C15D11