题目内容:
单击命令按钮时,下列程序段的执行结果是( )。Private Sub Command1 Click( )
Dim a As Integer,b As Integer,C As Integer
a=2:b=4:c=6
Call S1(a.b)
Print"a=";a;"b=";b;"c=";c
Call S2(a,b)
Print"a=";a;"b=";b;"c=";c;
End Sub
Private Sub S1(X.As Integer,Y As Integer)
Dim C As Integer
x=2*X:y=y+2:c=x+y
End Sub
Sub S2(x As Integer,ByVal Y As Integer)
Dim e As Integer
x=2*x:Y=Y+2:e=x+y
End Sub A.a=4 b=6 c=6
a=4 b=6 c=6
B.a=8 b=6 c=6
a=8 b=6 c=6
C.a=4 b=6 c=6
a=8 b=6 c=6
D.a=8 b=6 c=6
a=4 b=6 c=6
参考答案:
答案解析: