你可能感兴趣的试题
float z=6.56; double d=3.1415; boolean truth=true; String str="bye";
Constvarl=123 Dimvar2='ABC' Dim intSum As Integer Static var3 As Integer
Const var1=123 Dim var2=’ABC’ Dim x_y_z% Static var3 As Integer
Cont Var1=123 Dim Var2='ABC' DefInt a-z Static var3 As Integer
Constvar1=123 Dim var2='ABC' DefInt a-z Static var3 As Integer
Const varl=123 Dim var2='ABC' DefInt a-z Static var3 As Integer
printf("%d",*x); printf("%d",&x); printf("%d",*p); printf("%d",x);
Const Var1:123 Dim var2:“ABC” Deflnt a-z Static Var3 As Integer
Const varl=123 Dim var2='ABC' Defint a-2 Static var3 As Integer
Constvar1=123 Dimvar2='ABC' Dim intSum As Integer Static var3 As Integer
Constvar1=123 Dimvar2='ABC' Dim intSum As Integer Static vat3 As Integer
Vararry=newArray() Vararry=newArray(3) Vararry[]=newArray(3)(4) Vararry=newArray("3","4")
在过程中用Dim语句或Static语句声明的变量是局部变量 局部变量的作用域是它所在的过程 在过程中用Stalic语句声明的变量是静态局部变量 过程执行完毕,该过程中用Dim或Static语句声明的变量即被释放
float A a; public A a=A(); A a=new int() A a=new A();
在过程中用Dim语句或Static语句声明的变量是局部变量 局部变量的作用域是它所在的过程 在过程中用Static语句声明的变量是静态局部变量 过程执行完毕,该过程中用Dim或Static语句声明的变量即被释放