Question #183

Author: admin
tags: Go  
Select the items in the list where the code of the nested function is correct.
func main() {
	getX := func() int {
		return 100
	}

	fmt.Println(getX())
}
func main() {
	func getX() int {
		return 100
	}
	
	fmt.Println(getX())
}
func main() {
	x := func() int {
		return 100
	}()

	fmt.Println(x)
}
func main() {
	x := func getX() int {
		return 100
	}()

	fmt.Println(x)
}
Rate the difficulty of the question:
easyhard