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!
Similar QuestionsMore questions about Go
3
Write a Go program that prints 1 if test is true, and 0 otherwise.1
Declare a variable of type int64 and containing the value 42 in Go1
How to define a function in Go0
Return a string with the word 'Hello' and the name of the person passed as an argument.0
What is the default value of a variable in Go?