#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)程序有错无输出结果
[单选题]有以下程序#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.0B.)31.5C.)7.5D.) 程序有错无输出结果
[单选题]( 35 )有以下程序#include <stdio.h>#define SUB ( a ) ( a ) - ( a )main (){ int a=2,b=3,c=5,d;d=SUB ( a+b ) *c;printf ( " %d \ n " ,d ) ;}程序运行后的输出结果是A. ) 0B. ) -12C. ) -20D. ) 10
[单选题]有以下程序#include <stdio.h>#define S(x) (x)*x*2main( ){ int k=5, j=2;printf( "%d,”,s(k+j) ); printf(”%d\n”,s( (k-j) ) );}程序运行后的输出结果是A.) 98,18B.) 39,11C.) 39,18D.) 98,11
[单选题]有以下程序#include <stdio.h>#define P 24;#define S(x) P*x+x;main(){ int a=2, b=2; printf("%d/n",S(a+b));}程序的运行结果是A.程序编译运行时报错,无法输出 B.54 C.96 D.100
[单选题](35)有以下程序#include <stdio.h>#define S(x) 4*(x)*x+1main(){ int k=5,j=2;printf("%d/n",S(k+j));}程序运行后的输出结果是A.)197B.)143C.)33D.)28
[单选题]有以下程序# 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>#define f(x) x*x*xmain(){ int a=3,s,t;s=f(a+1);t=f((a+1));printf("%d,%d/n",s,t);}程序运行后的输出结果是A.)10,64B.)10,10C.)64,10D.)64,64
[单选题]试题36有以下程序#include <stdio.h>#include <string.h>Typedef struct {char name[9]; char sex; int score[2];}STU;STU f(STU a){ STU b={“Zhao”, ‘m’, 85, 90};int i ;strcpy(a.name, b.name);a.sex=b.sex;for(i=0; i<2; i++) a.score[i]=b.score[i];return
[单选题]有以下程序#include
[单选题]有以下程序:#include