某Visual Basic程序段如下: Dim a(1 To 10) As Integer Dim i As Integer a(1) = 1 For i = 2 To 10 a(i
某VisualBasic程序段如下:Dima(1To10)AsIntegerDimiAsIntegera(1)=1Fori=2To10a(i)=a(i-1)*iNexti...
某Visual Basic程序段如下:
Dim a(1 To 10) As Integer
Dim i As Integer
a(1) = 1
For i = 2 To 10
a(i) = a(i - 1) * i
Next
i
运行该程序段,会出现的错误提示为
(A)下标越界 (B)子程序或函数未定义 (C)要求对象 (D)溢出
已知答案是D,不求答案求解析 展开
Dim a(1 To 10) As Integer
Dim i As Integer
a(1) = 1
For i = 2 To 10
a(i) = a(i - 1) * i
Next
i
运行该程序段,会出现的错误提示为
(A)下标越界 (B)子程序或函数未定义 (C)要求对象 (D)溢出
已知答案是D,不求答案求解析 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询