Question from the Go test

Write a Go program that prints the following lines to the console: line 1, line 2, line 3, line 4

Expert

What will be the output of the following program:

func main() {
	fmt.Println("line 1")
	defer fmt.Println("line 2")
	defer fmt.Println("line 3")
	fmt.Println("line 4")
}
Author: Communauté W3DStatus: PublishedQuestion passed 223 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!