下列程序的输出结果是( ). #define N 3 #define M 3 void fun(int a[M][N]) { printf(\%d\\n\,*(a[1]+2));} main( ) { int a[M][N]; int i,j; for(i=0;i
相似题目
-
阅读下列程序段 , 则程序的输出结果为( )。 #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); }
-
请读程序:#include #define MUL(x,y) (x)*ymain(){int a=3,b=4,c;c=MUL(a++,b++);printf(“%d\n”,c);}上面程序的输出结果是( )。
-
以下程序的输出结果是#define f(x) x*xmain( ){ int a=6 ,b=2 ,c ;c=f(a) / f(b) ;printf(%d \n,c);}
-
以下程序的输出结果是 。main(){int b=5;#define b2#define f(x) b*(x)int y=3;printf(\%d\\n\,f(y+1));#undef bprintf(\%d\\n\,f(y+1));#define b3printf(\%d\\n\,f(y+1));}
-
以下程序输出结果是:( )#include #define M 2#define N 10int F(int p[ ], int n);int main(void){intn[M][N]={0, 3, 4, 5}, *p;p =&n[1][0];printf(\%d\\n\,F(p, N) );return0;}int F(int p[ ], int n) /* 利用元素指针访问二维数组的某一行元素 */{int i;for(i=0; i
-
以下程序的输出结果是_____。#define MCRA(m) 2*m#define MCRB(n,m) 2*MCRA(n)+mmain(){ int i=2,j=3;printf(\%d\\n\,MCRB(j,MCRA(i)));}
-
有以下程序:#include#define N 4void main(){ int x[N][N]={{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}},y[N],i;for(i=0;iy[i]=x[i][i]-x[i][N-1-i];for(i=0;iprintf('%d, ', y[i]);}程序运行后的输出结果是__________。
-
下列程序运行结果为:#defineP3#defineS(a)P*a*amain(){intar;ar=S(3+5);printf(\\\n%d\,ar);}
-
下列程序输出结果?#define PI 3.14#define S(r) PI*r*rmain(){float a,area;a=2; area=S(a); printf(“r=%f,area=%f”,a,area); }
-
有以下程序:#include#define N 4void main(){ int x[][N]={{1,2,3},{4},{5,6,7,8},{9,10}},y[N],i;for(i=0;iy[i]=x[i][i];for(i=0;iprintf('%d,', y[i]);}程序运行后的输出结果是__________。
-
以下程序的输出结果是() define f(x)x*x main() {int a=6,c; c=f(a); printf("%d\n",c); )
-
下面程序的输出是()。define N 3define M(n) ((N+1)*n)include <iostrearn.h>void main(){int
-
执行下列程序后,输出的结果是()。 include define S(X) X*X void main { int a=9,k=3,m=2; a/=S(k+m)/S(k+m): printf("%d",a); }
-
以下程序的输出结果是______。 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); }
-
下面程序的运行结果是()。 define POW(r)r*r main() {int x=2,y=3,t; t=POW(x+y); printf("%d\n"
-
下面程序的运行结果是()。 include define M 3 define N (M+1) define NM N*N/2 void main() { printf("%d,",NM); printf("%d\n",5*NM); }
-
有以下程序:define f(x) x*xmain(){int i;i=f(4+4)/f(2+2);printf("%d\n",i);}执行后输出结果是
-
以下程序的输出结果是______。 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); }
-
程序中头文件typel.h的内容是: define N 5 define M1 N *3 程序如下: include“typel.h” define M2 N*2 main() { int i; i=M1+M2;Printf(“%d\n”,0; } 程序编译后运行的输出结果是:
-
以下程序的输出结果是______。 define M(x,y,z) x*y+z main() { int a=1,b=2,c=3; printf("%d\n",M(a+b,b+c,c+a)); }
-
下列程序的运行结果是()。include<stdio.h>define ADD(x) x+x main{ int m=1,n=2,k=3;in
-
下列程序的运行结果是()。 include<stdio.h>define ADD(x) x+xmain(){int m=1,n=2,k=3; int s=A
-
下列程序执行后的输出结果是()define MA(x) x*(x-1)main(){int a=1,b=2;printf("%d\n",MA(1+a+B
-
阅读下面的C语言程序,请给出正确的输出结果()。include<stdio.h>define N 10define s(x) x*xdefine f(x) (x*x)define g(x) ((x)*(x))main(){ int i1, i2, i3, i4; i1=1000/s(N); i2=1000/f(N);i3=f(N+1);i4=g(N+1);printf(“i