Beginner Go (Golang)
Q12 / 100

What does Go's multiple return values feature allow?

Correct! Well done.

Incorrect.

The correct answer is B) A function returning more than one value, commonly used for (result, error) pairs

B

Correct Answer

A function returning more than one value, commonly used for (result, error) pairs

Explanation

func divide(a, b float64) (float64, error) returns both a result and an error, avoiding exceptions.

Progress
12/100