你可能感兴趣的试题
i=x x=u+y; x=23.4+j*y; v=(int)x;
i=x x=u+y; x=23.4+j*y; v=(inx;
包含1个字符 包含2个字符 包含3个字符 声明不合法
Const a As Single=1.1 Const a="OK" Const a As Double=Sin(1) Const a As Integer="12"
int _abc=50; double int=3+5e2.5; 1ong do=1L; float 3_asd=3e-3;
Const a As Single = 1.1 Const a As Integer = “12” Const a As Double = Sin(1) Const a =”OK”
$1_abc是合法的Java标识符 void是合法的Java保留字 局部变量必须先声明后使用 在Java中,类不是用标识符命名的
i=x; x=u+y; x=23.4+j*y; v=(inx;
int_abc=50; double int=3+5e2.5; long do=1L; float 3_asd=3e-3;
i=x; x=u+y; x=23.4+j*y; v=(int)x;
Const a As Single=1.1 Const a="OK" Const a As Double=Sin(1) Const a As Integer="12"
语句int a[8]=0;是合法的 语句int a[]=0;是不合法的,遗漏了数组的大小 语句char a[2]="t","B";是合法的,定义了一个包含两个字符的数组 语句char a[3];a="AB";是合法的,因为数组有三个字符空间的容量,可以保存两个字符
Const a As Single=1.1 Const As Integer="12" Const a AS Double=Sin(1) Const a="OK"