网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列声明语句中没有起到定义作用的是( )。

A.int count;

B.const double pi=3.14159;

C.extern long index;

D.int max(int a,int b){return a>b? a:b;}


参考答案

更多 “ 下列声明语句中没有起到定义作用的是( )。A.int count;B.const double pi=3.14159;C.extern long index;D.int max(int a,int b){return a>b? a:b;} ” 相关考题
考题 定义一个常量PI,可以使用下列语句中的( )。 A..PI= 3.14159B.Set PI = 3.14159C.Const PI = 3.14159D.Const PI

考题 若主调用函数类型为double,被调用函数定义中没有进行函数类型说明,而return语句中的表达式类型为float型,则被调函数返回值的类型是()。A.int型B.float型C.double型D.由系统当时的情况而定

考题 已知变量I 有如下定义:int I = 1000;则下列类型转换中,哪些出现了数据精度的丢失A.byte J = (byte)IB.long L = (long)IC.double D = (double)ID.short S = (short)I

考题 C允许函数值类型缺省定义,此时该函数值隐含的类型是()。A.int型B.long型C.float型D.double型

考题 设有语句height = 3L;,则height属于()。A.int型B.long型C.double型D.float型

考题 【多选题】已知变量I 有如下定义: int I = 1000; 则下列类型转换中,哪些出现了数据精度的丢失?(3 分)A.byte J = (byte)I;B.long L = (long)I;C.double D = (double)I;D.short S = (short)I;

考题 【多选题】已知变量I 有如下定义: int I = 1000; 则下列类型转换中,哪些出现了数据精度的丢失?(2 分)A.byte J = (byte)I;B.long L = (long)I;C.double D = (double)I;D.short S = (short)I;

考题 有下列程序段,其中存在着1个错误,发生在______语句。 Const pi = 3.14! Dim i%, s! i = 4.6 pi = 3.14159 If i Then s = pi * i * i Else s = 1 MsgBox(s)A.Const pi = 3.14!B.i = 4.6C.pi = 3.14159D.If i Then s = pi * i * i Else s = 1

考题 以下定义符号常量的语句正确的有____和____。A.const double PI = 3.14159;B.double const PI = 3.14159;C.double PI = 3.14159;D.double pi; pi=3.14159;