2022-07-04:以下go语言代码输出什么?A:true;B:false;C:编译错误。
代码语言:go复制package main
import "fmt"
func main() {
fmt.Println(func() {} == func() {})
}
答案2022-07-04:
答案选C。Slice, map, and function values are not comparable. However, as a special case, a slice, map, or function value may be compared to the predeclared identifier nil.