Intermediate Go (Golang)
Q78 / 100

What is the purpose of the io.Reader and io.Writer interfaces?

Correct! Well done.

Incorrect.

The correct answer is B) Minimal interfaces enabling composable I/O: io.Reader has Read([]byte), io.Writer has Write([]byte), accepted by many standard library functions

B

Correct Answer

Minimal interfaces enabling composable I/O: io.Reader has Read([]byte), io.Writer has Write([]byte), accepted by many standard library functions

Explanation

io.Copy(dst io.Writer, src io.Reader) works with files, buffers, network connections, and custom types — all implementing these two methods.

Progress
78/100