单选题 设窗体上有一个Conunand1命令按钮,还有以下程序代码:Private Sub Command1_Click()Static x As Integerx=x+1Call proc(x)Print x,End SubPrivate Sub proc(a As Integer)Static xA s Integerx=x+aa=xEnd Sub程序运行后,3次单击命令按钮,则产生的输出是
【正确答案】 C
【答案解析】解析:注意Static关键字修饰的变量,在过程退出后,变量值保持不变。选C。