参照 Swift API 以Int8(取值范围-128 ~ 127
)为例:
示例源代码:
override func viewDidLoad() {
super.viewDidLoad()
let x: Int8 = 16 &* 7
let y: Int8 = 32 &* 4
let m: Int8 = 10 &* 5
let n: Int8 = 10 &* 50
print(x)
print(y)
print(m)
print(n)
}
示例控制台输出: