迹忆客 计算机编程题库

题库 > Go > Go 笔试题精选 练习:44

Go 笔试题精选

关于类型转化,下面语法正确的是()
  • ```go type MyInt int var i int = 1 var jMyInt = i ```
  • ```go type MyIntint var i int= 1 var jMyInt = (MyInt)i ```
  • ```go type MyIntint var i int= 1 var jMyInt = MyInt(i) ```
  • ```go type MyIntint var i int= 1 var jMyInt = i.(MyInt) ```
正确答案是:C
正确率:36%

解析:

查看笔记

扫码一下
查看教程更方便