下面的语句执行后变量i的值是多少,试说明理由。 integer i i=32767 i=i+1
下面的语句执行后变量i的值是多少,试说明理由。 integer i i=32767 i=i+1
相关考题:
执行下列程序后,变量a的值为 ( ) Dim i As Integer Dim a As Integer a=0 For i=l To 100 Step 2 a=a+l Next iA.1B.10C.50D.100
运行下面的程序 I=0 DO WHILE I<10 IF INT (I/2)=I/2 ?“偶数” ELSE ?“奇数” ENDIF I=I+1 ENDDO 问语句?“奇数”被执行的次数是A.5B.6C.10D.11
下面的程序段运行后,变量S的值变为“65666768”,则程序中“表达式”为( )。 i+1Do While 表达式 S=S ASC(Chr¥(i+64)) i=i+1 LoopA.i>5B.NOT(i<>5)C.i<5D.i=5
单击一次命令按钮之后,下更程序代码的执行结果为______ 。 Public Sub Proc(a() As Integer) Static i As Integer Do a(i) = a(i) + a(i + 1) i=i+1 Loop While i < 2 End Sub Private Sub Command1_Cliek() Dim m As Integer Dim i As Integer Dim x(10) As Integer For i = 0 To 4 x(i) = i + 1 Next i For i = 1 To 2 Call Proc (x) Next i For i = 0 To 4 Print x(i); Next i End SubA.3 4 7 5 6B.3 5 7 4 5C.1 2 3 4 5D.1 2 3 5 7
单击一次命令按钮后,下列程序的执行结果为Private Sub Command1_Click()Dim m As Integer,I As Integer,x(10) As IntegerFor I=0 To 4:x(I)=I+1:Next IFor I=1 TO 2:Call Prioc(x):Next IFor I=0 TO 3:Print x(I);:Next IEnd SubPrivate Sub Prioc(a()As Integer)Static I As IntegerDoa(I)=a(I)+a(I+1)I=I+1Loop While I<2End SubA.3 4 7 5B.3 5 7 4C.1 2 3 4D.1 2 3 5
下面程序段是利用For语句给数组a赋值,使a(1)=1,a(2)=3,a(3)=5,……,a(50)=99,则划线处的语句应该是( )。 Dim a(1 to 50) As Integer For i=1 To 50 ______Next iA、a(i)=2*i+1B、a(i)=2*(i+1)C、a(i)=i+2D、a(i)=2*i-1
单选题执行语句 for(i=1;i++4;); 后变量 i 的值是()。A不定B3C4D5