Quiz · Goroutines and channels · lesson 5 of 13
Quiz — a send with no receiver
What happens when this program is built and run?
package main
import "fmt"
func main() {
ch := make(chan int)
ch <- 1
fmt.Println(<-ch)
}Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.