[单选题]

程序中头文件typel.h的内容是: #define N 5 #define M1 N*3 程序如下: #include "type1.h” #define M2 N*2 main() { int i; i=M1+M2; printf("%d/n",i);} 程序编译运行后的输出结果是( )

A.10

B.20

C.25

D.30

参考答案与解析:

相关试题

程序中头文件typel.h的内容是: #define N 5 #define M

[单选题]程序中头文件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",i); } 程序编译后运行的输出结果是A.10B.20C.25D.30

  • 查看答案
  • 程序中头文件typel.h的内容是 #define N5#define M1 N

    [单选题]程序中头文件typel.h的内容是 #define N 5 #define M1 N*3 #define "typel .h" #define M2 N*2 main ( ) { int i; i=M1+M2; printf ("%d/n", i ); } 程序编译后运行的输出结果是A.10B.20C.25D.30

  • 查看答案
  • 程序中头文件typel.h的内容是:#define N 5#define M1

    [单选题]程序中头文件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; } 程序编译后运行的输出结果是:A.10B.20C.25D.30

  • 查看答案
  • 程序中头文件type1.h 的内容是#define N5#define M1 N

    [单选题]程序中头文件type1.h 的内容是#define N 5#define M1 N*3程序如下:#define "type1.h"#define M2 N*2main (){ int i; i=M1+M2; printf("%d/n", i);) 程序编译后运行的输出结果是( )。A.10B.20C.25D.30

  • 查看答案
  • 有以下程序 #include<stdio.h> #defineN5 #defin

    [单选题]有以下程序#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

  • 查看答案
  • 有以下程序#include#defineN5#defineMN£«1#defin

    [单选题]有以下程序includedefineN5defineMN£«1definef(x)(x*M)main(){inti1,i2;i1=f(2);i2=有以下程序 #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

  • 查看答案
  • 有以下程序#include#defineN5#defineMN£«1#defin

    [单选题]有以下程序includedefineN5defineMN£«1definef(x)(x*M)main(){ inti1,i2;i1=f(2);i2有以下程序 #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

  • 查看答案
  • 下列程序的输出结果是 #include"stdio.h" #defineN3 #

    [单选题]下列程序的输出结果是#include "stdio.h"#define N 3#define M 3void fun(int a[M][N]){printf("%d\n",*(a[1]+2));}main(){int a[M][N];int i,j;for(i=0;i<M;i++)for(j=0;j<N;j++)a[i][j]=i+j-(i-j);fun(a);}A.3B.4C.5D.6

  • 查看答案
  • 若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是

    [单选题]若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是A.int *i=NULL;B.float *f=NULL;scanf("%d",i); *f=10.5;C.char t='m', *c=&t;D.long *L;

  • 查看答案
  • 若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是 __

    [单选题]若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是 ______。A.int*i=NULL; scanf("%d",i);B.float * f=NULL *f=19.5;C.char t='m',*c=&t; *c=&t;D.long *L; L='/0';

  • 查看答案