首页题目详情

以下哪个函数可以被调用,并且每次调用都会修改其内部变量?

题目配图
A.Public Function Add(a As Integer, b As Integer) As Integer
B.Public Sub Increase(ByRef x As Integer)
C.Public Function Multiply(a As Integer, b As Integer) As Integer
D.Public Function Initialize(a As Integer) As Integer

优质解答

答案

B

解析

Sub函数可以使用ByRef参数来修改外部变量的值,而Function函数返回值不会修改外部变量。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

Visual Basic语言程序设计单选题中等AI生成