下面的数组声明语句中正确的是__________。
A: Dim gg[1,5] As String
B: Dim gg[1 To 5,1 To 5] As String
C: Dim gg(1 To 5) As String
D: Dim gg[1:5,1:5] As String
A: Dim gg[1,5] As String
B: Dim gg[1 To 5,1 To 5] As String
C: Dim gg(1 To 5) As String
D: Dim gg[1:5,1:5] As String
举一反三
- 若有数组声明语句:Dim t(1 To 5) As String,则t被定义为()。
- 下列数组声明语句中, 不正确的是___________。 A: Dim a(5) As Single B: Dim a(1 To 5) As Single C: Dim a(0) As Single D: Dim a(5) As Single=(1,2,3,4,5,6)
- 下面数组声明语句错误的是__________。 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%(,) B: Dim b%(4) = {1, 2, 3, 4, 5} C: Dim c%(-2) D: Dim d%{{1, 2, 3}, {4, 5, 6}}
- 下列一维数组声明语句错误的是( B )。 A: DIM B(100) AS DOUBLE B: DIM B(-20 TO -50) AS INTEGER C: DIM B(-15 TO 0) D: DIM B(5 TO 5) AS STRING