选择题:有以下程序#include <stdio.h>#define PT 3.5 ;#define S(x) PT*x*x ;main(){ int a=

题目内容:
有以下程序

#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" main() {intk[30]={12,324,45,6,768,98,21,34,453,45

现有如下程序段 #include"stdio.h" main() {intk[30]={12,324,45,6,768,98,21,34,453,45

查看答案

下列情况中,不会调用拷贝构造函数的是______。 A.用一个对象去初始化同一类的另一个新对

下列情况中,不会调用拷贝构造函数的是______。 A.用一个对象去初始化同一类的另一个新对

查看答案

下列程序执行后的输出结果是 voidfunc1(inti); voidfunc2(inti); charst[]="hello,frie

下列程序执行后的输出结果是 voidfunc1(inti); voidfunc2(inti); charst[]="hello,frie

查看答案

有以下程序#include &lt;stdio.h&gt;struct ord{ int x,y; } dt[2]={1,2,3,4};main(){ stru

有以下程序#include &lt;stdio.h&gt;struct ord{ int x,y; } dt[2]={1,2,3,4};main(){ stru

查看答案

设有宏定义 :#define IsDIV(k,n) ((k%n==1)?1:0) 且变量 m 已正确定义并赋值 ,则宏调用 :Is

设有宏定义 :#define IsDIV(k,n) ((k%n==1)?1:0) 且变量 m 已正确定义并赋值 ,则宏调用 :Is

查看答案