A-A+
设有以下函数过程Private Function Fun(a()As Integer b A
问题详情
设有以下函数过程
Private Function Fun(a()As Integer,b As String)As Integer
…
End Function
若已有变量声明:
Dim x(5)As Integer,n As Integer,ch As String
则下面正确的过程调用语句是()。
A.x(O)=Fun(x."ch")
B.n=Fun(n.ch)
C.CallFun X,"ch"
D.n=Fun(x(5),ch)请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:A
A。【解析】函数调用时,必须保证实参类型和形参类型一致,只有A符合,B项第一个参数是整型,C项不符合函数调用的方式,D项是数组的一个元素。