以下程序运行后,输出结果是______。 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

以下程序运行后,输出结果是______。 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.5

B.112.5

C.18

D.24


相关考题:

以下程序运行后,输出结果是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 main() {int a[] = {2,4,6,8,10} ,y =0,x, * p;p =a[1];for( 有以下程序: #include <stdio.h> main() { int a[] = {2,4,6,8,10} ,y =0,x, * p; p =a[1]; for(x=1;x<3;x++)y+ =p[x]; printf( "% d \n" , y); }程序运行后的输出结果是( )。A.10B.11C.14D.15

有以下程序includedefine PT3.5;define S(x)PT*x*x;main(){inta=1,b2;printf("%4.1f 有以下程序 #include<stdio.h> #define PT3.5; #define S(x)PT*x*x; main() { inta=1,b2; printf("%4.1f\n",S(a+b); } 程序运行后的输出结果是______。A.14.0B.31.5C.7.5D.程序有错无输出结果

以下程序运行后,输出结果是() 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

以下程序运行后,输出结果是define PT 5.5define S(x)PT*x*xincludemain(){ int a=1, 以下程序运行后,输出结果是 #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

在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>