A Separate Structure

The lesson elaborates the use of a separate struct to return multiple values.

The outputs seem to represent related data. That’s why it’s probably a good idea to wrap them into a struct called SelectionData.

Get hands-on with 1200+ tech skills courses.