问题
单项选择题
如果在程序中要将c定义为静态变量,且为整型数,则应使用的语句是
A.Redim a As Integer
B.Static a As Integer
C.Public a As Integer
D.Dim a As Integer
答案
参考答案:B
解析: Static用于在过程中定义静态变量及数组变量。
如果在程序中要将c定义为静态变量,且为整型数,则应使用的语句是
A.Redim a As Integer
B.Static a As Integer
C.Public a As Integer
D.Dim a As Integer
参考答案:B
解析: Static用于在过程中定义静态变量及数组变量。