fr
fr

Question from the Go test

Medium

What is displayed when this code is executed?

func main() {
    ch := make(chan int, 1)
    ch <- 10
    select {
    case ch <- 20:
        fmt.Println("envoyé")
    default:
        fmt.Println("par défaut")
    }
}
Author: WeLoveDevsStatus: PublishedQuestion not yet passed
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!