MOV CL,04
SHL DX,CL
MOV BL,AH
SHL AX,CL
SHR BL,CL
OR DL,BL
试分析下面程序段完成什么功能。
MOV CL,4
SHR AX,CL
MOV BL,DL
SHR DX,CL
SHL BL,CL
OR AH,BL
执行下面的程序段,x的值为【 】。 Private Sub Command1_Click() For i=1 To 9 a=a + i Next i x=Val(i) MsgBox x End Sub
阅读下面的程序段,回答以下问题。
if (x < 5 ) System.out.print(" one ");
else {
if (y < 5 ) System.out.print(" two ");
else System.out.println(" three ");
}
问题:1)若执行前x=6,y=8,该程序段输出是什么?2)若执行前x=1,y=8,该程序段输出是什么?
执行下面的程序段,输出结果为【 】。 public class Q { public Static Void main(String args[]) { int anar[]=new int[5]; System.out.println(anar[0]); } }
执行下面的程序段,辅出结果为上【 】。 public class Q { public static void main (String argv[]) { int anar[]=new int[5]; System.out.pfintln(anar[0]); } }