有如下程序段: includedefine Max(a,b) a>b?a:bmain(){int a=5,b=6,c=4,d;d=c+Max(a, 有如下程序段: #include<stdio.h> #define Max(a,b) a>b?a:b main() { int a=5,b=6,c=4,d; d=c+Max(a,b); printf("%d",d); } 其输出结果为______。A.10B.5C.6D.编译错误

有如下程序段: includedefine Max(a,b) a>b?a:bmain(){int a=5,b=6,c=4,d;d=c+Max(a,

有如下程序段: #include<stdio.h> #define Max(a,b) a>b?a:b main() { int a=5,b=6,c=4,d; d=c+Max(a,b); printf("%d",d); } 其输出结果为______。

A.10

B.5

C.6

D.编译错误


相关考题:

现有如下程序段#include "stdio.h"int fun(int k,int *m){if(k%3)*m=k*k;else *m=k/3;}main(){ int (*p)(int,int *),m;p=fun;(*p)(78, m);printf( "%d\n",m);}则程序段的输出结果为A.24B.25C.26D.27

有如下程序#include "stdio.h"void fun(int *a,int *b){ int m; m=(*a+*b)*(*a+*b); m+=(*a-*b)*(*a-*b); printf("%d\n",m);}main(){ int a=5,b=6,*x= fun(x,y);}程序执行后输出的结果为A.120 B.121 C.122 D.123

有如下程序段:include define Max(a,b) a>b?a:bmain(){int a=5,b=6,c=4,d;d=c+Max(a, 有如下程序段: #include <stdio.h> #define Max(a,b) a>b?a:b main() { int a=5,b=6,c=4,d; d=c+Max(a,b) ; printf("%d",d) ; } 其输出结果为______。A.10B.5C.6D.编译错误

现有如下程序段#include "stdio.h"int *fun(int *a,int *b){int c;c=*a%*b;return c;}main(){int a=5,b=19,*c;c=fun(a,b);printf("%d\n",++*c);}则程序段执行后的结果为A.8B.7C.6D.5

在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是A.#include <math.h>B.#include <stdio.h>C.#define <math.h>D.#define <stdio.h>

在C程序中如果要使用数学函数,如sqrt(x),pow(x,y)等,需要在程序中加入的语句是______A.#define <math.h>B.#define <stdio.h>C.#include <stdio.h>D.#include <math.h>

16、在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是A.#include <math.h>B.#include <stdio.h>C.#define <math.h>D.#define <stdio.h>

2、在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是A.#include <math.h>B.#include <stdio.h>C.#define <math.h>D.#define <stdio.h>

在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是()A.#include <stdio.h>B.#define <stdio.h>C.#include <math.h>D.#define <math.h>