选择题   窗体中有命令按钮Command1,事件过程如下:
    Public Function f(x As Integer)As
    Integer
    Dim y As Integer
    x=20
    y=2
    =x*y
    End Eunction
    Private Sub Command1_Click()
    Dim y As Integer
    Static x As Integer
    x=10
    y=5
    y=f(x)
    Debug.Print x;y
    End Sub
    运行程序,单击命令按钮,则立即窗口中显示的内容是______。
 
【正确答案】 D
【答案解析】函数调用时,默认采用的是传址方式。在调用两数f时,x的值变为20,同时将f的值40返回y,结果为x=20,y=40。