why b is 0?
`func main() {
const s = “123456789”
var b byte = 1 << len(s[:]) / 128
fmt.Printf("b: %vn", b) //why b is 0
}
`
var b byte = 1 << len(s[:]) / 128
Is equivalent to
var b byte = byte(byte(1<<len(s[:])) / 128)
New contributor
HuBeoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.