单项选择题

以下程序的运行结果为( )。
#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.10.5
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序的运行结果是( )。 #include<ctype.h> fun(char *p) int i,t; char ts[8]; for(i=0,t=0;p[i]!=' 0';i+=2) if(!isspace(*p+i)&&(*(p+i)!='a')) ts[t++]=toupper(p[i]); ts[t]=' 0 '; strcpy(p,ts); main() char str[81]= a b c d ef g ); fun(str); puts(str);
A.abcdeg
B.bcde
C.ABCDE
D.BCDE
单项选择题
有以下程序: int n,s=0; for(n=10;n<30;n++) if(n%3==0) s+=n; continue; if(s>100) break; printf( %d ,s): 程序运行后输出的结果是( )。
A.117
B.147
C.127
D.137
相关试题
  • 以下程序中函数scmp的功能是返回形参指针sl...
  • 有以下结构体说明和变量定义,如图所示,指...
  • 以下程序的输出结果是( )。 struct st...
  • 下面程序的输出结果是( )。 main() ...