[单项选择题] 单击命令按钮时,下列程序的执行结果是()。  Private Sub Command1_Click()    Dim a As Integer,b As Integer,C As In

14 查阅

[单项选择题] 单击命令按钮时,下列程序的执行结果是()。  Private Sub Command1_Click()    Dim a As Integer,b As Integer,C As Integer    a=3    b=4    c=5    Print SecProc(c,b,a)  End Sub  Function FirProc (x As Integer,y As Integer,z As Integer)    FirProc=2 * x + y + 3 * z+2  End Function  Function SecProc (x As Integer,y As hteger,z As Integer)    SecProc=FirProc(z,x,y)+x+7  End Function

A.13

B.16

C.36

D.33

参考答案:

C

本题考查的是指针和引用,函数fun完成把x和y互换的操作。

计算机考试