Hard
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 292 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
0
Write a Go program that prints the numbers from 1 to 105
Write a Go program that prints 1 if test is true, and 0 otherwise.1
How to define a function in Go0
How to handle errors in Go0
Write a Go program that prints the string "Hello World" to the console.2
Declare a variable of type int64 and containing the value 42 in Go0
Iterate over a slice in Go