题目内容:
设有如下通用过程:Public Function f(x As Integer) Di my As Integerx=20 y =2f =x*yEnd Function在窗体上画一个名称为Co mmand1的命令按钮,然后编写如下事件过程:Private Sub Co mmand1_Click() Static x As Integer x=10 y =5 y =f(x) Print x;yEnd Sub程序运行后,如果单击命令按钮,则在窗体上显示的内容是( )。A.105
B.205
C.2040
D.1040
参考答案:
答案解析: