Can a function return two values?

You can’t return two values. However, you can return a single value that is a struct that contains two values.

Leave a Comment