答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【判断题】【消耗次数:1】
return 语句用来规定从函数返回的值。因此,需要返回某个值的函数必须使用这个 return 语句。
①
正确
②
错误
参考答案:
复制
纠错
相关题目
【判断题】
有返回值的函数,结束函数运行时可以不使用return语句。
①
正确
②
错误
查看完整题目与答案
【单选题】
已定义以下函数 fun(int*p) {return*p;} 该函数的返回值是()
①
不确定的值
②
形参p中存放的值
③
形参p所指存储单元中的值
④
形参p的地址值
查看完整题目与答案
【单选题】
若主调用函数类型为double,被调用函数定义中没有进行函数类型说明,而return语句中的表达式类型为float型,则被调函数返回值的类型是( )。
①
int 型
②
float 型
③
double 型
④
由系统当时的情况而定
查看完整题目与答案
【单选题】
函数返回值类型是由()
①
return语句的表达式类型决定
②
则主调函数接收变量类型决定
③
调用函数时系统随机分配决定
④
定义函数时所指定的函数类型决定
查看完整题目与答案
【单选题】
C语言规定,函数返回值的类型是由()决定的。
①
return语句中的表达式类型
②
调用该函数时的主调函数类型
③
调用该函数时由系统临时
④
在定义函数时所指定的函数类型
查看完整题目与答案
【单选题】
如果某函数的返回值是个对象,则该函数被调用时,返回的对象()。
①
是通过复制构造函数初始化的
②
是通过无参构造函数初始化的
③
用哪个构造函数初始化取决于函数的return语句是怎么写的
④
不需要初始化
查看完整题目与答案
【单选题】
C语言中规定函数的返回值的类型是由
①
return语句中的表达式类型所决定
②
调用该函数时的主调用函数类型所决定
③
调用该函数时系统临时决定
④
在定义该函数时所指定的类型所决定
查看完整题目与答案
【单选题】
一个函数的返回值由( )确定。
①
return语句中的表达式
②
调用函数的类型
③
系统默认的类型
④
被调用函数的类型
查看完整题目与答案
【单选题】
若要结束所在函数的执行,返回到调用该函数的位置,应选择使用的语句是?
①
continue
②
break
③
goto
④
return
查看完整题目与答案
【单选题】
C语言中,若缺省定义函数返回值类型,则该函数默认返回值类型是()。
①
void
②
long
③
int
④
double
查看完整题目与答案
随机题目
【单选题】
This box is too heavy for me to carry upstairs.__________
①
You may ask for help.
②
Let me give you a hand.
③
Please do me a favor.
④
I’d come to help
查看完整题目与答案
【单选题】
He cannot be tired _______ he has walked only half a mile.
①
since
②
whether
③
when
④
as long as
查看完整题目与答案
【单选题】
The idea of winning the eyes of the people around ____ powerfully to some youngsters, so they are eagerly identifying themselves.
①
defy
②
expel
③
attract
④
appeals
查看完整题目与答案
【单选题】
The top of the Great Wall is _______ for five horses to go side by side.
①
wide
②
wide enough
③
enough wide
④
so wide
查看完整题目与答案
【单选题】
Charles regretted ______ the TV set last year. The price has now come down.
①
buying
②
to buy
③
of
④
from
查看完整题目与答案
【单选题】
I didn’t mean to do that. Please forgive me.____________
①
Not too bad.
②
Never mind.
③
It’s a pleasure.
④
Thank you.
查看完整题目与答案
【单选题】
No sooner _______ than they began to work.
①
they had arrived
②
they would arrive
③
had they arrived
④
would they arrive
查看完整题目与答案
【单选题】
Louis was asked to ___ the man who stole her purse.
①
confirm
②
recognize
③
claim
④
identify
查看完整题目与答案
【单选题】
For thousands of years man dreamed () seemed impossible dreams about flying.
①
what
②
that
③
which
④
why
查看完整题目与答案
【单选题】
___________ priorities
①
make
②
set
③
establish
④
identify
查看完整题目与答案