大学职业资格刷题搜题APP
下载APP
课程
题库模板
WORD模板下载
EXCEL模板下载
题库创建教程
创建题库
登录
logo - 刷刷题
创建自己的小题库
搜索
【多选题】

对下面的函数的表述正确的是() /* 函数返回两个数中较大的那个数 */ int max(int num1, int num2) { /* 局部变量声明 */ int result; if (num1 > num2) result = num1; else result = num2; return result; }

A.
函数名为 int max
B.
函数有两个参数
C.
该函数有返回值
D.
该函数的返回值为int类型
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
收藏 - 刷刷题收藏
举报
刷刷题
参考答案:
举一反三

【单选题】Password is a secret series of 5 that enables a user to access a file, computer, or program. On multi-user systems, each user must enter his or her password before the computer will respond to 6 ....

A.
在函数内只能访问局部变量,而不能访问全局变量
B.
局部变量与全局变量的名字不得相同
C.
若一个函数被多次调用,则其定义的局部变量必定分配同一个存储单元
D.
函数中定义的局部变量与全局变量同名时,在函数内引用的是局部变量

【单选题】有如下类声明: class Foo{ int bar; }; 则Foo类的成员bar是______。

A.
公有数据成员
B.
公有成员函数
C.
私有数据成员
D.
私有成员函数
相关题目:
【单选题】Password is a secret series of 5 that enables a user to access a file, computer, or program. On multi-user systems, each user must enter his or her password before the computer will respond to 6 ....
A.
在函数内只能访问局部变量,而不能访问全局变量
B.
局部变量与全局变量的名字不得相同
C.
若一个函数被多次调用,则其定义的局部变量必定分配同一个存储单元
D.
函数中定义的局部变量与全局变量同名时,在函数内引用的是局部变量
【单选题】有如下类声明: class Foo{ int bar; }; 则Foo类的成员bar是______。
A.
公有数据成员
B.
公有成员函数
C.
私有数据成员
D.
私有成员函数
刷刷题-刷题-导入试题 - 刷刷题
参考解析:
题目纠错 0
发布
刷刷题-刷题-导入试题 - 刷刷题刷刷题-刷题-导入试题 - 刷刷题刷刷题-刷题-导入试题 - 刷刷题
刷刷题-刷题-导入试题 - 刷刷题
刷刷题-刷题-导入试题 - 刷刷题
刷刷题-单词鸭