fr
fr

Question from the Go test

Waiting for validation

What happens when this code is executed?

func main() {
	var a chan int
	b := make(chan int, 1)

	select {
	case v := <-a:
		fmt.Println("a", v)
	case v := <-b:
		fmt.Println("b", v)
	}
}
Author: John PendenqueStatus: Waiting for validationQuestion not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!