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

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函数返回值不会修改外部变量。
Visual Basic语言程序设计单选题中等AI生成