单选题
VB
题号 #4688591
有如下过程代码:

连续3次调用vat_dim过程,第3次调用时的输出是( )。
参考答案
C
答案解析
Static声明的变量为静态变量。静态变量在程序运行期间,每次进入过程时都会保留上次的值,而普通变量不会保留。nulna定义为静态变量,因此每次调用都会保留结果,3次调用过程,nnma的值为6,numb的值为1。
你可能感兴趣的试题
A.2 0 0
B.2 0 4
C.2 3 0
D.2 0 00 4 0 0 4 03 4 0 0 4 50 0 6 4 0 6 0 0 6 0 5 6
A.Print Mid(”VBProgram”,3,7)
B.Print Right(”VBProgram”,7)
C.Print Mid(”VBProgram”,3)
D.Print Left(”VBProgram”;7)
A.Label控件的Enabled属性与TextBox控件的Enabled属性
B.OpfionBraon控件的Value属性与CheckBox控件的Value属性
C.Commantt控件的Default属性与Command控件的Cancel属性
D.Command控件的Visible属性与Frame控件的Visible属性
