【单选题】以下声明和使用常量的语句中,错误的是:
A. let a = 5 B. let a :Int a = 10 C. let a = 5 a = 10 D. let a:Int = 5, b = 10, c:Float = 10
A. let a = 5 B. let a :Int a = 10 C. let a = 5 a = 10 D. let a:Int = 5, b = 10, c:Float = 10
举一反三
- 【多选题】下列命名正确的是: A. var 1a = 10 B. var ho = 10 C. var @ = 10 D. let dog = 20
- console.log(a) let a = 10
- script> let a = 10; { let a = 100; console.log(a)//(1) } console.log(a)//(2)
- 以下对一维数组a进行初始化语句中错误的是()。 A: int a[10]={0,0,0,0,0} B: int a{5}={5*1} C: int a[]={0,1,2,3,4}; D: int a[10]={0};
- 以下正确定义整型10个元素数组的是( )。 A: int a(10) B: int a[10] C: int a{10} D: int a[5][5]