A.void
B.double
C.int
D.float
第1题:
若定义函数时函数的返回类型缺省,则函数的默认数据类型为()
A.int
B.void
C.char
D.float
第2题:
若函数为int型,变量z为float型,该函数体内有语句return(z); ,则该函数返回的值是()。
A.int型
B.float型
C.static型
D.extern型
第3题:
4、若定义函数时函数的返回类型缺省,则函数的默认数据类型为()
A.int
B.void
C.char
D.float
第4题:
Point为一个类,下面的友元运算符重载函数原型中,正确的是()
A.friend float operator + (float);
B.friend Point operator + (float x, float y);
C.friend Point operator + (float, float);
D.friend Point & operator + (Point, float);
第5题:
2、fun函数的返回值的类型是 。 fun (float x ) { float y; y=3*x-4; return y; }
A.int
B.不确定
C.void
D.float