网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
关于const常量定义,下面正确的使用方式是()
A.
const Pi float64 = 3.14159265358979323846const zero = 0.0
B.
const (size int64 = 1024eof = -1 )
C.
const (ERR_ELEM_EXIST error = errors.New("element already exists")ERR_ELEM_NT_EXIST error = errors.New("element not exists"))
D.
const u, v float32 = 0, 3 const a, b, c = 3, 4, "foo"
参考答案
更多 “ 关于const常量定义,下面正确的使用方式是() A.const Pi float64 = 3.14159265358979323846const zero = 0.0B.const (size int64 = 1024eof = -1 )C.const (ERR_ELEM_EXIST error = errors.New("element already exists")ERR_ELEM_NT_EXIST error = errors.New("element not exists"))D.const u, v float32 = 0, 3 const a, b, c = 3, 4, "foo" ” 相关考题
考题
【单选题】微信小程序中设置常量的说法错误的是?A.全局常量需要定义在app.js文件中B.定义在页面page对象外的常量,本页面内有效C.常量使用关键字const修饰D.常量的值也是可以修改的
考题
定义一个类常量,应该使用的修饰符是()。A.finalB.staticC.final和staticD.const
热门标签
最新试卷