下面数组说明语句错误的是().
A: Dim a(10) As Intege
B: Dim d(-10 To -1) As Boolean
C: Dim e(-99 To -5,-3 To 0)
D: Dim f(-10 To -20,10 To 20) As Long
A: Dim a(10) As Intege
B: Dim d(-10 To -1) As Boolean
C: Dim e(-99 To -5,-3 To 0)
D: Dim f(-10 To -20,10 To 20) As Long
举一反三
- 下列数组说明语句正确的是 A: Dim g(0,-5)As Single B: Dim h(100 To 100,100)As String C: Dim x(5)As Integer D: ReDim x(10)As Integer E: Dim y() F: ReDim y
- 下面数组声明语句错误的是__________。 A: Dim a%(-5 to -3) B: Dim a%(-1 to 2,3) C: Dim n%,a%(n) D: Dim a(-1 to 0) as Integer
- 下列语句错误的是( )。 A: Dim a(-10 To 5) As Integer B: Dim n as Integern=10Dim a(n) As Integer C: Const n As Integer = 5Dim a(5) As Integer D: Dim a%(10,-10 To -10)
- 下列数组声明语句中,不正确的是_________。 A: Dim a(9) As Single = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} B: Dim a() = {1, 2, 3, 4, 5, 6, 10} C: Dim a( ,) As Single = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}} D: Dim a() As Single = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} E: Dim n As Integer=10Dim a(n) As Single
- 以下定义数组或给数组元素赋值的语句中,正确的是 A: Dim a As Variant B: a=Array(1,2,3,4,5) C: Dim a (10) As Integer D: a=Array(1,2,3,4,5) E: Dim a%(10) F: a(1)="ABCDE" G: Dim a (3),b(3) As Integer H: a(0)=0 I: a(1)=1 J: a(2)=2 K: b=a