You can't return
two values. However, you can return a single value that is a struct that contains
two values. You can return only one thing from a function. Either you make a struct which contains all the things you want to return, or you pass some function parameters by reference.
read more >>