已定义数组dim a(5) as integer,函数ubound(a())的值为________,lbound(a())的值为________
举一反三
- 有如下程序: Const N=-5 Const M=6 Dim a(N To M)As Integer For i=LBound(a)To UBound(a) a(i)= i Next i Print a(LBound(a));a(UBound(a)) 运行后,输出结果为( )。
- 下面的语句用Array函数为数组a的各元素赋整数值: a=Array(1,2,3,4,5,6,7,8,9) 对数组变量a的正确定义是 A: A) Dim a B: B) Dim a As Integer C: C) Dim a(9) As Integer D: D) Dim a() As IntegEr
- 以下定义数组的语句中,正确的是______。 A: Dim a( ,) as Integer B: Dim a(5 To 1) As Integer C: Dim a(-3 To 2000) As Single D: Dim a(n) As Double
- 下列数组声明语句中,正确的是( )。 A: Dim A[5,8]As Integer B: Dim A(5,8)As Integer C: Dim A[5;8]As Integer D: Dim A(5;8)As Integer
- 以下程序输出的结果是: Private Sub Form_Activate() Dim a a=Array(1,2,3,4,5) For i=Lbound(((A) To Ubound(((A) A(i)=i*a(i) Next i Print i, Lbound(((A) , Ubound(((A) , a(i) End Sub