Intermediate
Go (Golang)
Q42 / 100
What is the difference between buffered and unbuffered channels?
Correct! Well done.
Incorrect.
The correct answer is B) Unbuffered channels synchronize sender and receiver; buffered channels allow sending up to capacity without a matching receiver
B
Correct Answer
Unbuffered channels synchronize sender and receiver; buffered channels allow sending up to capacity without a matching receiver
Explanation
make(chan int) is unbuffered — send blocks until received. make(chan int, 5) buffers up to 5 values; send only blocks when buffer is full.
Progress
42/100